Check all of your paths.

I had two problems:
 + my patterns began with '/', I incorrectly assumed that would be relative
to the dir property
 + patterns specified correct paths, but contained incorrect case (i.e.
"dir1" vs. "Dir1")

Greg

> -----Original Message-----
> From: Johannesmeyer, Marcus CWT-MSP [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 10:54 AM
> To: 'Ant Users List'
> Subject: RE: PaternSet problems
>
>
> Hello,
>
> I'm trying to learn ant and thought I would try to copy your test
> but can't
> seem to get it to work.  It looks like the fileset gets the paths from the
> "include" but not the "includesfile".  The unused.files property does not
> get set at all.  What am I missing?
>
> Thanks,
> Marcus
>
> ant code:
>     <fileset id="unused_files" dir="${basedir}/implementation">
>         <includesfile name="file_list.txt"/>
>         <include name="**/majTestfile.java"/>
>         <include name="**/majTestfile2.java"/>
>    </fileset>
>
>    <target name="test">
>         <pathconvert pathsep="," property="unused.files"
> refid="unused_files"/>
>         <echo>${unused.files}</echo>
>    </target>
>
> file_list.txt:
> **/TestAppTest.java
> **/TestApp.java
> **/TestAppMainFrame.java
>
> ant -debug: (last few lines)
> test:
> FileSet: Setup file scanner in dir
> C:\Ant_stuff\ant_tests\fileset_pathconvert_ta
> sk\implementation with patternSet{ includes: [**/majTestfile.java,
> **/majTestfil
> e2.java] excludes: [] }
> [pathconvert] Set property unused.files =
> Setting project property: unused.files ->
>      [echo]
>
> BUILD SUCCESSFUL
>
> -----Original Message-----
> From: Greg Hassan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 10:08 AM
> To: Ant Users List
> Subject: RE: PaternSet problems
>
>
> Thanks Diane. I was starting to feel neglected :(
>
> I have resolved this with a few exceptions... there are still 4
> files out of
> 200+ that were not matched. Shouldn't be a problem finding out were the
> problem is here.
>
> At first echo wasn't writing anything. That was only because all paths
> weren't resolved properly so unused.files was empty.
>
> It was failing because my paths began with '/'. I assumed this
> would resolve
> to the root as specified in <fileset> dir property. This doesn't
> seem to be
> the case though.
>
> Secondly, the paths are case-sensitive. Usually java doesn't have any
> problems with case when resolving paths in Windows.
>
> Thanks again,
> Greg
>
> > -----Original Message-----
> > From: Diane Holt [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 5:38 PM
> > To: Ant Users List
> > Subject: RE: PaternSet problems
> >
> >
> > It works for me, so could there be something different between what you
> > posted and what you actually have in your build file?  What
> happens if you
> > do this:
> >   <fileset id="unused_files" dir="${basedir}/implementation"
> >            includesfile="file_list.txt"/>
> >
> >   <target name="default">
> >     <pathconvert pathsep="," property="unused.files"
> > refid="unused_files"/>
> >     <echo>${unused.files}</echo>
> >   </target>
> >
> > Do you get the list of files you're wanting to move?
> >
> > Diane
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to