ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@mind.net
Subject Re: Fwd: Re: Patternsets, Filesets, and Mapper
Date Mon, 04 Mar 2002 17:00:39 GMT
Diane,

Sorry about the delay, got pulled into another project last week.

Taking a close look at this, it seems that you are saving the class lists to a file... 
Wouldn't this have the similar problem to the includesfile thing mentioned earlier?  IE: I
have 7 files running in parallel, all doing this for 3 sets of files....  That is a lot of
files, disk i/o, and have to have 21 different files.....

My patches do what I wanted to do.  I am fine moving those into a different class or
whatever.... but it does not seem like Ant can currently handle it without my patch
without using 21 extra files....

Anyone have a solution that does not need all the extra files?

Thanks,
Malachi

> <project name="malachi" default="genLists">
> 
>   <fileset dir="src" id="srcfiles">
>     <include name="com/mycompany/util/class1.java"/>
>     <include name="com/mycompany/io/class2.java"/>
>   </fileset>
> 
>   <target name="genLists" depends="setClassList,setPkgList">
>     <echo message="classfiles = ${classfiles}"/>
>     <echo message="pkglist = ${pkglist}"/>
>   </target>
> 
>   <target name="setClassList">
>     <delete file="classes.properties"/>
>     <pathconvert pathsep="," property="classes" refid="srcfiles">
>       <map from="${basedir}${file.separator}src"
>            to="${basedir}${file.separator}build${file.separator}classes"/>
>     </pathconvert>
>     <propertyfile file="classes.properties">
>       <entry key="classfiles" value="${classes}"/>
>     </propertyfile>
>     <replace file="classes.properties">
>       <replacefilter token=".java" value=".class"/>
>     </replace>
>     <property file="classes.properties"/>
>   </target>
> 
>   <target name="setPkgList">
>     <delete file="pkgs.properties"/>
>     <pathconvert pathsep="," dirsep="." property="pkgs" refid="srcfiles">
>       <map from="${basedir}" to=""/>
>     </pathconvert>
>     <propertyfile file="pkgs.properties">
>       <entry key="pkglist" value="${pkgs}"/>
>     </propertyfile>
>     <replace file="pkgs.properties">
>       <replacefilter token=".src." value=""/>
>     </replace>
>     <replaceregexp file="pkgs.properties"
>                    match="\.java"
>                    replace=""
>                    flags="g"
>                    byline="true"/>
>     <property file="pkgs.properties"/>
>   </target>
> 
> </project>
> 
> Diane



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message