ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Singletary <>
Subject map patternset's .java names to fileset's .class names ???
Date Mon, 14 Apr 2003 20:13:20 GMT
I've got a patternset containing the names of .java files;
I need a fileset containing the corresponding .class files.
Any ideas?

For example, suppose compiles to Example.class and
Example$1.class.  My build.xml contains:

    <patternset id="java-files">
      <include name=""/>

    <target name="compile">
      <javac destdir="." srcdir=".">
        <patternset refid="java-files"/>

I want a "smarter" jar target than:

    <target name="jar">
      <jar destfile="example.jar">
        <fileset dir=".">
          <include name="Example.class"/>
          <include name="Example$1.class"/>


View raw message