ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David A Bartmess" <dingod...@edingo.net>
Subject Re: how are variables set?
Date Fri, 18 Feb 2005 22:22:55 GMT
I'm not familiar with this software, but as far as ant goes, is there a
build.properties file, or some other file being imported in the main
build.xml? If so, look in there, or add the j2ee.home=<PATH> to it so it's
set.

Good luck!

On Fri, February 18, 2005 2:31 pm, Frank said:
> Just starting to use ant/asant to build examples for web services from
> sun tutorial. Running into a problem when I run the "asant build" get
> the following error:
>
> compile-client:
>      [echo] Compiling the client source code....
>      [echo] src=src destdir=build
>     [javac] Compiling 1 source file to
> C:\j2eetutorial14\examples\jaxrpc\statics
> tub\build
>
> BUILD FAILED
> file:C:/j2eetutorial14/examples/jaxrpc/common/targets.xml:119: C:\lib
> not found.
>
>
> I' running this on XP. The problem appears too be the c:\lib is not the
> correct path too anything. I think it's suppose too be the classpath.
> Well in the targets.xml line 119 is the javac line below.
>
> <target name="compile-client" depends="prepare"
>       description="Compiles the client-side source code"  >
>       <echo message="Compiling the client source code...."/>
>       <echo message="src=${src}    destdir=${build} "/>
>     <javac srcdir="${src}" destdir="${build}">
>         <include name="**/*.java" />
>      <classpath refid="jaxrpc.classpath"/>
>      <classpath path="${build}" />
>     </javac>
>   </target>
>
> jaxrpc.classpath is set above as follows:
> <path id="jaxrpc.classpath">
>     <fileset dir="${j2ee.home}/lib">
>       <include name="*.jar"/>
>     </fileset>
>   </path>
>
> But how in the world does j2ee.home get set?  I see nothing too set it.
> If I set it as an environment variable it does not work.  How do values
> such as these get values in the targets.xml?  The build.xml does not
> have any reference too these.  Could not find anything in the
> documentation. HELP!!! LOL
>
> Thanks,
>
> Frank
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
David A. Bartmesss
Sr. Software Configuration Manager
http://edingo.net

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


Mime
View raw message