I want to store output of ant.zip() inside build directory. I’m doing it the following way for now. Is there way to directly do it in ant.zip()? Answer Like this:
Tag: ant
Ivy Install task fails with JSCH SFTP error 4 first time, but is successful on subsequent attempts
I am trying to use the ANT Ivy install task to copy a library from one repository to the other. Some example code within my ANT target: The fromRepo and toRepo are defined in a local ivysettings.xml file. The resolve (from fromRepo) of the library is successful but the install to toRepo fails, with an SFTP Code 4 error. However
MissingResourceException: Can’t find bundle for base name resources.controls.controls_res, locale en
I can’t understand what the problem is, why he swears and can’t find locale en. Is there a problem with paths or boundle names? The legacy project, written 15 years ago, used to be in Ant, now it was translated to Gradle, this error has appeared. It builds on Ant without problems. P.S. I marked the lines to which the
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
Ant Javac compile subpackage class files to the parent src directory
I would like Ant 1.9 to be able to compile servlet classes to the parent src directory, but the file system has the files in packages. No, the packages are not declared in the servlet files. The code is deployed with all the servlets in the same directory. I supposed I can create an ant copy command to do this,
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
This compilation unit is not on the build path of a Java project
When I try to use ctrl+space this error is shown: I see that there are similar topics but my work environment is Eclipse and i pull my project from Git (I import project as general project) and i use Apache Ant. Can anyone help me? Answer Since you imported the project as a General Project, it does not have 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: