Questions tagged as 'ant'

2
answers

Add JNI Library Compilation with maven or ant tasks

I'm creating a Java project with native methods ( JNI ) without having to create three separate projects for this. My goal is to compile everything I need in one go. I use only one DLL / OS in this project generated by a single C file. How...
asked by 08.10.2014 / 19:07
1
answer

Eclipse executes the xml buildfile of ANT 2 times, even having to execute only once

In netbeans, after a few searches, I was able to edit the build.xml file to customize the way the IDE generated my jar and my manifest file. I had to migrate some projects to eclipse, and I even found the option to build jar, but I need t...
asked by 16.11.2016 / 11:55
1
answer

Change lines of code inside files with Apache Ant

I am studying Apache Ant to try to change some lines of code inside files, but so far I have not found anything about it in the official documentation, so the maximum I can do is rename files like this example <move todir="my/src/dir" inclu...
asked by 01.08.2014 / 14:58
2
answers

Change the project dependencies folder (lib)

When compiling my project in Netbeans , the files are generated in this way: ./dist ./dist/meuProjeto.jar ./dist/readme.txt ./dist/lib ./dist/lib/dependencia1.jar ./dist/lib/dependencia2.jar And I want it to be generated without the...
asked by 01.04.2015 / 16:06
1
answer

Error building project with bilbioteca Commons-Email-1.4

In my project I needed to add the option to send emails I added the library commons-email-1.4 I wrote all the code and tested. So far everything is perfect however when cleaning and building the application .jar file, here is the error....
asked by 30.12.2016 / 13:29
1
answer

How to change the maven life cycle?

I have an EJB project and would like to run the test after deploying my ear. I have a test in the ejb layer, which needs to access the ejbstubs inside the server (was), before I did this with ant, but I'm changing to maven, but I'm not able to c...
asked by 12.11.2015 / 17:10
1
answer

Maven calling Ant

I have a maven project, I want maven to "call" some ant target, I already saw that it has a "maven-antrun-plugin" plugin on the apache website, but I can not understand any examples, someone could give me a simple example, like creating a .jar (...
asked by 19.10.2015 / 19:52
1
answer

How to generate a jar through ANT?

I'm using Jdeveloper together with Ant, though I came across a pretty boring situation ... I can not generate a functional .jar through the ant. I have already built a build.xml containing the path to main class, however ... whenever I try to...
asked by 14.10.2015 / 23:00
2
answers

Load with Ant and EAP Task 7x "Caused by: java.lang.NoClassDefFoundError: javax / xml / ws / soap / SOAPFaultException"

I make a script build using the ant task, the load, and the JBOSS EAP 7 application platform, below is my source code: <taskdef resource="cargo.tasks"> <classpath> <fileset dir="${common.lib.dir}/cargo">...
asked by 28.01.2018 / 19:43
1
answer

SQL syntax error when starting the OW2 Orchestra

Recently, I downloaded the OW2 orchestra software. In the user manual, after going through all the configuration steps (I am using MySQL as my BD. The other settings are the standards, including the use of hibernate), I came to the instructions...
asked by 14.11.2016 / 02:41