ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: Class-Path attribute
Date Fri, 28 Mar 2003 16:03:25 GMT
Whoops, I meant pathsep=" " not dirsep ...

-----Original Message-----
From: Keith Hatton 
Sent: 28 March 2003 16:02
To: Ant Users List
Subject: RE: Class-Path attribute


<untested>
something like this, maybe ...

    <fileset dir="${third.party.lib}" id="jar.files">
      <include name="*.jar"/>
    </fileset>
  
    <pathconvert dirsep=" " property="class-path" refid="jar.files"/>

then set the attribute in your mf to the value of the class-path property
</untested>


-----Original Message-----
From: Justin Thomas [mailto:Justin.Thomas@RCP.co.uk]
Sent: 28 March 2003 15:55
To: 'Ant Users List'
Subject: RE: Class-Path attribute


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


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


Mime
View raw message