Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Ant - <fileset> problem?

Thread view: 
tonywinslow1986@gmail.com - 06 Feb 2007 07:52 GMT
java.lang.NoSuchMethodError:
org.apache.tools.ant.util.FileUtils.getFileUtils()L
org/apache/tools/ant/util/FileUtils;
was thrown when i use <fileset> even the simple build.xml below:

<project name="tmp" default="cp">
   <target name="init">
    <delete dir="test1"/>
    <delete dir="test2"/>
    <mkdir dir="test1"/>
    <mkdir dir="test2"/>
   </target>

   <target name="cp" depends="init">

    <copy todir="test2">
       <fileset dir="test1">
       </fileset>
    </copy>
   </target>
</project>

Can anyone tell me Y???
Lothar Kimmeringer - 06 Feb 2007 18:06 GMT
> java.lang.NoSuchMethodError:
> org.apache.tools.ant.util.FileUtils.getFileUtils()L
> org/apache/tools/ant/util/FileUtils;
> was thrown when i use <fileset> even the simple build.xml below:

How do you call the ant-script? Inside an IDE, directly, within
a script, ...?

Regards, Lothar
Signature

Lothar Kimmeringer                E-Mail: spamfang@kimmeringer.de
              PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                questions!

Arne Vajhøj - 10 Feb 2007 18:35 GMT
> java.lang.NoSuchMethodError:
> org.apache.tools.ant.util.FileUtils.getFileUtils()L
> org/apache/tools/ant/util/FileUtils;
> was thrown when i use <fileset> even the simple build.xml below:

Sounds like running in a too old JVM to me.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.