ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste BRIAUD -- Novlog <j-b.bri...@novlog.com>
Subject Re: Problem with javac target on Windows server
Date Wed, 10 Feb 2010 15:30:22 GMT
Hi,

Check that none of the variables like ${default.javac.source} point to the C:\Documents and
Settings directory
Try ant -diagnostics for that, it will dump all the properties.

Also not sure about differences between srcdir and source ...


On Feb 10, 2010, at 16:13 , Pascal Quesseveur wrote:

> Hello,
> 
> I am using ANT (version 1.7.0) to manage the development of a
> Glassfish application. The project targets are very common. I use the
> command-line-ant-task.xml provided by SUN.
> 
>  - the build runs fine on Windows XP & Vista
>  - when used on Windows Server 2008, the compilation target
>    bpp-actual-compilation fails (others targets like package or
>    deploy work without problem): javac aborts because it cannot find
>    C:\Documents and Settings directory
>  - when I run javac directly by hand it runs fine
>  - I have no reference to C:\Documents and Settings in classpath
> 
> Here is the target:
> 
> --8<---------------cut here---------------start------------->8---
>    <target name="bpp-actual-compilation" if="has-java-sources">
>        <echo>Compiling ${module.name}</echo>
>        <mkdir dir="${build.classes.dir}"/>
>        <javac srcdir="${src.dir}"
>            source="${default.javac.source}"
>            target="${default.javac.target}"
>            excludes="${javac.excludes}"
>            debug="${javac.debug}"
>            debuglevel="${javac.debuglevel}"
>            encoding="${javac.encoding}"
>            destdir="${build.classes.dir}"
>            includes="**">
>            <classpath refid="classpath"/>
>            <compilerarg value="${javac.opt.warnings}" />
>        </javac>
>    </target>
> --8<---------------cut here---------------end--------------->8---
> 
> 
> -- 
> Pascal Quesseveur
> quesseveur@abaksystemes.fr
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message