ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Trusiak" <carl_trus...@hotmail.com>
Subject RE: Class-Path attribute
Date Fri, 28 Mar 2003 16:05:38 GMT
How about <path id> and <classpath refid>

   <!-- create reusable classpath -->
   <path id="1">
	<fileset dir="${third.party.lib}">
           <patternset refid="all.third.party.files"/>
	</fileset>
   </path>


<target name="compile" depends="init,clean">
   <mkdir dir="${dest}" />
   <javac srcdir="${srcroot}"
                 destdir="${dest}"
                 debug="true">
        <include name="**.*.java" />
        <classpath refid="1" />
  </javac>
</target>







>From: Justin Thomas <Justin.Thomas@RCP.co.uk>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: 'Ant Users List' <user@ant.apache.org>
>Subject: RE: Class-Path attribute
>Date: Fri, 28 Mar 2003 15:55:20 -0000
>
>I don't suppose anyone has an example of this do they?
>
>Thanks
>
>-----Original Message-----
>From: Keith Hatton [mailto:khatton@axiomsystems.com]
>Sent: 28 March 2003 15:54
>To: Ant Users List
>Subject: RE: Class-Path attribute
>
>
>I think you may be able to do something clever with <pathconvert>
>
>Keith
>
>
>-----Original Message-----
>From: Justin Thomas [mailto:Justin.Thomas@RCP.co.uk]
>Sent: 28 March 2003 15:53
>To: 'user@ant.apache.org'
>Subject: Class-Path attribute
>
>
>Hi,
>
>I place all my third party jars in a lib dir.  Is there a way to
>automatically pick them up from directory and place them in my classpath
>attribute?
>
>something like this
>
>  <attribute name="Class-Path">
>	<fileset dir="${third.party.lib}">
>                         <patternset refid="all.third.party.files"/>
>
>	</fileset>
></attribute>
>
>I know it does not nest fileset but do you get my idea?
>
>________________
>
>---------------------------------------------------------------------
>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


Mime
View raw message