ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Problem with javac target on Windows server
Date Wed, 10 Feb 2010 15:26:12 GMT
[slightly re-shuffled]

On 2010-02-10, Pascal Quesseveur <quesseveur@abaksystemes.fr> 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.

>   - 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

> Here is the target:
>     <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>

>   - I have no reference to C:\Documents and Settings in classpath

what does the defintion of classpath look like (the Ant element with
id="classpath").

"C:\Documents and Settings" smells like ${user.home} could point to it,
what do you get when running Ant against

<project>
  <echo>${user.home}</echo>
</project>

Stefan

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


Mime
View raw message