Re: Xcode command line build with large Java projects
Re: Xcode command line build with large Java projects
- Subject: Re: Xcode command line build with large Java projects
- From: Francis Labrie <email@hidden>
- Date: Wed, 10 Dec 2003 13:18:39 -0500
Hi,
A month ago I got this problem too, and I've reported it as problem ID
#3479023.
Le 04 dic. 2003, ` 16:21, David Ewing a icrit :
> [...]
> To work around this, probably the easiest thing to do is to set the
> JAVA_SOURCE_PATH to a colon-separated list of project-relative (or
> absolute) paths of your source tree(s). This requires that you
> organize your sources in directory hierarchies based on their package
> names. (You can have multiple source trees - the root directories are
> what need to be listed in the build setting.) This setting lets javac
> find other source files that aren't explicitly listed on the command
> lines.
But this is not sufficient when having several hundreds of Java source
files in a Xcode project... :(
> On Dec 2, 2003, at 3:56 PM, Michael Hast wrote:
>> We converted out existing PB Java WebObjects applications to Xcode.
>> In order to release our products we run a release build script from
>> the command line using xcodebuild. We are getting errors when large
>> applications are being build (hundreds of java files). The errors are
>> that some classes in the project cannot be found. However, building
>> the application from within Xcode succeeds. Is that a known bug? Does
>> anyone know of a workaround?
>>
>> The build output from within Xcode and from the command line are
>> different. From within Xcode a java file list is generated and passed
>> to the java compiler (see below). From the command line, every java
>> file is passed to the java compiler (see below). That results in an
>> incomplete list and that causes the errors.
>>
>> Build output from within Xcode:
>> /usr/bin/javac <arguments> '@/some/path/test.build/Application
>> Server.build/JavaFileList'
>>
>> Build output from command line:
>> /usr/bin/javac <arguments> 'Class1.java' 'Class2.java' ...
>>
>> Again for small projects this is not a problem. But for hundreds of
>> java files this is an issue.
--
Francis Labrie
Saint-Bruno-de-Montarville, Quebec, Canada
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.