[EMAIL PROTECTED] wrote:

What does "-debug" say?

Jan


Also, what does filesets.add(fs) do.
If it checks the fileset, it would be incorrect as
useing the add<Name>(Fileset fs) form passes in
the fs *before* it is configurered. One would need
to do:
public void addConfiguredFileset(Fileset fs)
instead.

Peter



-----Ursprüngliche Nachricht-----
Von: Rajiv Jaitly [mailto:[EMAIL PROTECTED]
Gesendet am: Dienstag, 11. Januar 2005 16:42
An: user@ant.apache.org
Betreff: custom task

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please read the disclaimer at the bottom of this e-mail.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Hi,

I have written an custom task that can take FileSet. The task looks like

public void addFileset(FileSet fs) { System.out.println("About to enter ..."); if (fs == null){
throw new BuildException("Specify files ... ");
}
filesets.add(fs);
System.out.println("got to the end");
}




When i run Ant target i get the following error:

[helloworld] About to enter ...
BUILD FAILED: C:\javadev\workspace\java-files\creatTasks.xml:83: No directory specified for FileSet.


Here is my target:

<target name="file-handling" description="example to handle files" depends="use.init"> <trial>
<fileset dir="${basedir}">
<include name="**/*.java"/>
</fileset>
</trial> </target>


There are definitely java files in the directory.

Any ideas.

Thanks

Raj


**********************************************************************
This email is intended for the named recipient(s) only. Its contents
are confidential and may only be retained by the named recipient(s)
and may only be copied or disclosed with the consent of LCH.Clearnet Limited. If you are not an intended recipient please
delete this e-mail and notify [EMAIL PROTECTED]


The contents of this email are subject to contract in all cases, and LCH.Clearnet Limited makes no contractual commitment save where
confirmed by hard copy. LCH.Clearnet Limited accepts no liability, including liability for negligence, in respect of any statement in this email.


LCH.Clearnet Limited, Registered Office: Aldgate House, 33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing House under the Financial Services & Markets Act 2000. Reg in England No.25932 Telephone: +44 20 7426 7000 Internet:

http://www.lchclearnet.com
**********************************************************************






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



Reply via email to