ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ha, Thai" <tha...@psv.com.vn>
Subject RE: Any Ant task to find the location of a jar file from a class name ??
Date Mon, 10 May 2004 10:14:40 GMT

 Thanks a lot, Ivan.

 Regards,
 Thai
-----Original Message-----
From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]
Sent: Monday, May 10, 2004 4:37 PM
To: Ant Users List
Subject: Re: Any Ant task to find the location of a jar file from a
class name ??


Hi,

I would do this

<property environment="env"/>
<property name="java.home" value="${env.JAVA_HOME}"/>
<property name=${tools.jar}
value=${java.home}/lib/tools.jar>.

HTH Ivan
--- "Ha, Thai" <thaiha@psv.com.vn> wrote:
> 
>  Hi all,
> 
>  I'm using Ant and I have a problem with getting
> location of tools.jar in my
> build.xml. Are there any Ant task to find the
> location of a jar file from a
> class name in that jar file? (something like
> happyaxis.jsp in Axis project)
> In my build.xml, I want to precompile my JSP pages
> (using weblogic.jspc) and
> give it the location of tools.jar (which Ant is
> using). But I don't know how
> to do that. Below is the snippet from the build.xml 
> file:
> 
>     <java classname="weblogic.jspc" 
>           fork="true" 
>           failonerror="true">
>       <classpath>
>         <pathelement location="${tools.jar}/"/> <!--
> How to get???-->
>         <path refid="weblogic.class.path"/>
>         <pathelement
> location="${temp.dir}/WEB-INF/classes"/>
>         <fileset dir="${temp.dir}/WEB-INF/lib">
>           <include name="*.jar"/>
>         </fileset>
>       </classpath>
>       <arg value="-compileAll"/>
>       <arg line="-compilerclass
> sun.tools.javac.Main"/>
>       <arg value="-d"/>
>       <arg file="${temp.dir}/WEB-INF/classes"/>
>       <arg value="-depend"/>
>       <arg value="-webapp"/>
>       <arg file="${temp.dir}"/>
>       <arg value="-k"/>
>       <arg value="-keepgenerated"/>
>       <arg value="-verbose"/>
>     </java>
> 
>  Regards,
>  Thai
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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