You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexis Votta <al...@gmail.com> on 2007/10/08 15:55:11 UTC

How to include multiple source branches in javac task

This is how my javac task looks right now.

    <javac srcdir="${src.dir}"
    destdir="${build.classes.dir}">
      <include name="UIManager.java"/>
      <include name="com/example/project/**/*.java"/>
    </javac>

I want to move the include names to a properties file, so that my
javac task looks like:-

    <javac srcdir="${src.dir}"
    destdir="${build.classes.dir}">
      <sometag someattrib="${includelist}"/>
    </javac>

This will help me to put all the includes at one place in the
properties file like this:-

src.includes = UIManager.java:\
  com/example/project/**/*.java:\
  com/example/test/**/*.java

Is it possible?

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


Re: How to include multiple source branches in javac task

Posted by Sunil Prabhakaran <su...@gmail.com>.
hi

check the below snippet

<javac srcdir="${src.dir}"
   destdir="${build.classes.dir}" includesfile="list.txt"/>

list.txt has list of files to be compiled( either filename or patterns
using wild cards)
for example list.txt may look like
ABC.Java
Test??.java
**/com/*.java




On 10/8/07, Alexis Votta <al...@gmail.com> wrote:
> No, I haven't. How can I use it?
>
> On 10/8/07, Sunil Prabhakaran <su...@gmail.com> wrote:
> > Hi
> >
> > Have you tried the Includesfile attribute in Javac task?
> >
> > Regards
> > Sunil Prabhakaran
> >
> > On 10/8/07, Alexis Votta <al...@gmail.com> wrote:
> > > This is how my javac task looks right now.
> > >
> > >     <javac srcdir="${src.dir}"
> > >     destdir="${build.classes.dir}">
> > >       <include name="UIManager.java"/>
> > >       <include name="com/example/project/**/*.java"/>
> > >     </javac>
> > >
> > > I want to move the include names to a properties file, so that my
> > > javac task looks like:-
> > >
> > >     <javac srcdir="${src.dir}"
> > >     destdir="${build.classes.dir}">
> > >       <sometag someattrib="${includelist}"/>
> > >     </javac>
> > >
> > > This will help me to put all the includes at one place in the
> > > properties file like this:-
> > >
> > > src.includes = UIManager.java:\
> > >   com/example/project/**/*.java:\
> > >   com/example/test/**/*.java
> > >
> > > Is it possible?
> > >
> > > ---------------------------------------------------------------------
> > > 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


Re: How to include multiple source branches in javac task

Posted by Alexis Votta <al...@gmail.com>.
No, I haven't. How can I use it?

On 10/8/07, Sunil Prabhakaran <su...@gmail.com> wrote:
> Hi
>
> Have you tried the Includesfile attribute in Javac task?
>
> Regards
> Sunil Prabhakaran
>
> On 10/8/07, Alexis Votta <al...@gmail.com> wrote:
> > This is how my javac task looks right now.
> >
> >     <javac srcdir="${src.dir}"
> >     destdir="${build.classes.dir}">
> >       <include name="UIManager.java"/>
> >       <include name="com/example/project/**/*.java"/>
> >     </javac>
> >
> > I want to move the include names to a properties file, so that my
> > javac task looks like:-
> >
> >     <javac srcdir="${src.dir}"
> >     destdir="${build.classes.dir}">
> >       <sometag someattrib="${includelist}"/>
> >     </javac>
> >
> > This will help me to put all the includes at one place in the
> > properties file like this:-
> >
> > src.includes = UIManager.java:\
> >   com/example/project/**/*.java:\
> >   com/example/test/**/*.java
> >
> > Is it possible?
> >
> > ---------------------------------------------------------------------
> > 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


Re: How to include multiple source branches in javac task

Posted by Sunil Prabhakaran <su...@gmail.com>.
Hi

Have you tried the Includesfile attribute in Javac task?

Regards
Sunil Prabhakaran

On 10/8/07, Alexis Votta <al...@gmail.com> wrote:
> This is how my javac task looks right now.
>
>     <javac srcdir="${src.dir}"
>     destdir="${build.classes.dir}">
>       <include name="UIManager.java"/>
>       <include name="com/example/project/**/*.java"/>
>     </javac>
>
> I want to move the include names to a properties file, so that my
> javac task looks like:-
>
>     <javac srcdir="${src.dir}"
>     destdir="${build.classes.dir}">
>       <sometag someattrib="${includelist}"/>
>     </javac>
>
> This will help me to put all the includes at one place in the
> properties file like this:-
>
> src.includes = UIManager.java:\
>   com/example/project/**/*.java:\
>   com/example/test/**/*.java
>
> Is it possible?
>
> ---------------------------------------------------------------------
> 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