...
<target name=copy-deps">
<copy todir="." flatten="true">
<path refid="my-classpath"/>
</copy>
</target>
...
To execute (assuming that my-classpath is defined, of course):
ant copy-deps
...
<target name=copy-deps">
<copy todir="." flatten="true">
<path refid="my-classpath"/>
</copy>
</target>
...
ant copy-deps
String iHaveAnEof = "file ends here\u001a";
public class Do {
public void doSomething(Object arg) {
System.out.println("Do " + arg.toString());
}
}
public class DoDifferently extends Do {
public void doSomething(Object arg) {
System.out.println("Do different " + arg.toString());
}
public void doSomething(String arg) {
System.out.println("Do different string " + arg.toString());
}
}
Do o = new Do();
o.doSomething("x");
DoDifferently o2 = new DoDifferently();
o2.doSomething("x");
Do o3 = new DoDifferently();
o3.doSomething("x");
@Path("/atm")
public class AtmService {
@GET @PATH("/balance")
@Produces("text/plain")
public String balance(@QueryParam("card") String card,
@QueryParam("pin") String pin) {
...
}
...
PrintStream actualStdout = new PrintStream(
new FileOutputStream(FileDescriptor.out))
actualStdout.println("test message")
Thread.sleep(1000)
