Skip to content
Advertisement

Tag: ant

jni.h no such file or directory

To install leJos for NXJ brick i follow the documentation tutorial , i set the variables like this : ` ` i go to build directory to make the ant command in the terminal and the build failed with the following error , i know the problem is surely in jni.h and i tried to fix it but i can’t

Unzip specific zip file from nested zip file using ANT

I have a zip file ex. ‘test.zip’ that contains 2 more zip files within it – A.zip and B.zip. I want to only extract contents of A.zip and leave B.zip untouched. I did try out the below code snippet, but found no luck yet – Please advise how this could be achieved. Answer From the unzip task’s documentation: Only file

How to implement Log4j-audit in Java/GWT web app

Currently working on implementing audit logging for a web app and would like to use log4j-audit. The app is written using OpenJDK 8 and GWT 2.7 hosted by Jboss 6.4 and built using Ant 1.10.5. My question is how does one implement the log4j-audit framework into our current structure? I have worked through the getting started section and read the

How to set classpath in ant correctly?

I have my single dependency on path projectRoot/lib/jsoup.jar. My build.xml is simple: This doesn’t work, because jsoup.jar is not included in final AntDemo.jar. EDIT When compile target is running the output has warning: What does this warning mean? Thank you! Answer When you compile classes and specify a classpath, the classes and other resources in that javac classpath don’t get

How to change the Java JDK version in an Ant task?

I need to compile my source code to be compatible with JRE 1.6. However, when I attempt to set the compiler attribute of the javac task to be javac1.6, Ant will still compile my code with javac1.7. I have also tried setting the compiler version to be “modern” and that did not work. My JAVA_HOME is set to JDK 1.6:

Advertisement