ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parimala" <parim...@medicomsoft.com>
Subject RE: js.jar
Date Wed, 19 Nov 2003 10:51:59 GMT

I have written only this much

<script language="javascript">
</script>

giving java.lang.NoSuchMethodError

what to doooo


-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Wednesday, November 19, 2003 3:58 PM
To: user@ant.apache.org
Subject: RE: js.jar


> now a new problem, build build execution simply says "No such method
> error"..
> is there no end for this chain of problems :-(

no


ok, just kidding :-)
If you use <script> you´re using the API methods of Java and Ant. Therefore
you have
to use the right signatures.

E.g. getting the DirectoryScanner from a fileset would NOT be:
    ds = myFileset.getDirectoryScanner()
because there is no such a method. Now guess which error occurs ...
If you read the Javadoc, you´ll get the solution:
    ds = myFileset.getDirectoryScanner(project)


Jan


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


Mime
View raw message