geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Waimun Yeow <wai...@dev.java.net>
Subject Re: [jira] Created: (GERONIMO-641) Compile fails using forked compiler when directory contains spaces
Date Thu, 05 May 2005 16:30:13 GMT
Yes, I am aware of that. This is an issue with maven <ant:javac> using  
forked=true AND compiling in a directory with spaces. If you want to  
compile with spaces, then you have to set forked=false. Pls refer to my  
original post (comments after <ant:javac>). I filed the issue so that  
builders can build in their directory with spaces (which is not a good  
thing). It is not a bug, but just a blocker to getting it to compile  
successfully.

Tks.

On May 5, 2005, at 2:26 AM, Mohammed Nour wrote:

> I think the problem is caused by the spaces in the path "C:\Documents
> and Settings\Geronimo Team\My..." place ur src files into a path that
> has no spaces.
>
> hope this works :)
>
> On 5/4/05, Waimun Yeow (JIRA) <dev@geronimo.apache.org> wrote:
>> Compile fails using forked compiler when directory contains spaces
>> ------------------------------------------------------------------
>>
>>         Key: GERONIMO-641
>>         URL: http://issues.apache.org/jira/browse/GERONIMO-641
>>     Project: Geronimo
>>        Type: Task
>>  Components: buildsystem
>>    Versions: 1.0-M3
>> Environment: Windoze, but generic env applies
>>    Reporter: Waimun Yeow
>>    Priority: Blocker
>>
>> Using forked compiler in <ant:javac> causes compile to fail. The  
>> following is encountered  during the build of j2ee-builder/maven.xml.
>> /***********************
>> setupEar:
>>    [javac] Compiling 20 source files to C:\Documents and  
>> Settings\Geronimo Team\My
>> Documents\test\geronimo\modules\j2ee-builder\target\test-ear14\test- 
>> ejb-jar
>>    [javac] javac: invalid flag: C:\Documents
>>    [javac] Usage: javac <options> <source files>
>> *************/
>>
>> The maven file:
>> <ant:javac srcdir="${ear.src.base.dir}/test-ejb-jar"
>>            destdir="${ear.target.base.dir}/test-ejb-jar"
>>            source="${maven.compile.source}"
>>            target="${maven.compile.target}"
>>            debug="on"
>>            fork="true">
>> <!--
>> changing fork="false" works
>> //I generally use paths without spaces in windows, but I found this  
>> error because I was test compiling it in "documents and settings"
>> -->
>>
>>  Comment by Brett Porter [07/May/04 08:54 PM]
>> looks like we need to wait for the Ant upgrade in future versions of  
>> Maven
>>
>> This is an issue with maven. See  
>> http://jira.codehaus.org/browse/MPJAVA-4
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> If you think it was sent incorrectly contact one of the  
>> administrators:
>>   http://issues.apache.org/jira/secure/Administrators.jspa
>> -
>> For more information on JIRA, see:
>>   http://www.atlassian.com/software/jira
>>
>>
>


Mime
View raw message