Ant - <fileset> problem?

Discussion in 'Java' started by tonywinslow1986@gmail.com, Feb 6, 2007.

  1. Guest

    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???
     
    , Feb 6, 2007
    #1
    1. Advertising

  2. wrote:

    > 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
    --
    Lothar Kimmeringer E-Mail:
    PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

    Always remember: The answer is forty-two, there can only be wrong
    questions!
     
    Lothar Kimmeringer, Feb 6, 2007
    #2
    1. Advertising

  3. wrote:
    > 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
     
    =?UTF-8?B?QXJuZSBWYWpow7hq?=, Feb 10, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miguel De Anda

    ant jar/fileset propblems

    Miguel De Anda, Jun 28, 2003, in forum: Java
    Replies:
    1
    Views:
    12,317
    Miguel De Anda
    Jul 3, 2003
  2. Chris Bedford
    Replies:
    6
    Views:
    2,289
  3. john martin
    Replies:
    2
    Views:
    2,252
    john martin
    Apr 7, 2005
  4. Replies:
    1
    Views:
    5,350
    Tony Morris
    Mar 3, 2006
  5. Andrew  McGhie
    Replies:
    3
    Views:
    702
    Roedy Green
    Feb 7, 2008
Loading...

Share This Page