Questions tagged [ant]

1

votes
0

answer
295

Views

Gradle - ivy dependencies: only download the jar files

I am trying to figure out how to use ivy dependencies in gradle and have it download only the jar file from the repositories. As it stands right now I get the zip files for javadocs and various source archives which is causing unnecessary bloat in my war file. I am new to gradle and slowly trying...
Ed Dunn
1

votes
0

answer
335

Views

XML Request Generated From WSDL Always adding a namespace

I am having an issue where a request being generated from a WSDL is always appending a namespace to the element one step down from the Soap Body element. We are using Apache Ant and a wsimport command to generate the associated java files. The recipient desires the request to be in the following for...
akorous
1

votes
1

answer
369

Views

Code status 406 when running a Spring WebApp

I have these files in my project folder build.xml version='1.0'?> tests.failed=${tests.failed} *********************************************************** *********************************************************** **** One or more tests failed! Check the output ... **** *************************...
Paras Meena
1

votes
0

answer
224

Views

How to run Ant task from within Gradle Java plugin and a Java task?

I'm writing a Java Plugin that internally applies a multiple of code-quality/static analysis plugins to add their tasks to the project, so for example I'm adding CheckStyle, PMD, CPD .... etc, now I wanted to add GMetrics which is an Ant task in plain gradle I do it this way: task gmetrics { doLast...
Shehabic
1

votes
0

answer
63

Views

ANT does not link JNI files

Compiled .apk is starting but has not translated & compiled neither java code nor cpp code. Instead of this ANT builder makes new java file and compilation goes with that template file. I didn't find any sufficient manuals to console/terminal building !without! IDE & Gradle (especially without Googl...
cname
1

votes
1

answer
273

Views

Kivy Buildozer vm ant build failing

I am trying to build the Hello World Kivy app on the Buildozer vm. Everything runs fine until Ant tries to compile the files. I have attached the full error log and buildozer.spec [email protected]:~/Documents/TestKivy/src$ buildozer android_new debug # Check configuration tokens # Ensure build layout # C...
mcmahonS9
1

votes
0

answer
47

Views

Can't load custom look&feel from JAR file since Java 9

My Java application uses the Substance look&feel for its UI. My application is released as .jar file, which includes the dependency .jar files for the look&feel in its root directory. The Manifest file looks like this: Rsrc-Class-Path: ./ jgoodies-forms-1.4.1.jar jgoodies-common-1.1.1.jar netty-3.6....
Matthias
1

votes
2

answer
84

Views

Ant task for retrieving revision's author

I have the following lines in my build.xml file: But the value of the 'svn.info.author' property eventually occurs to be '12' (and accordingly .svn/entries file contains only one value - '12'). At the same time the name of revision's author in the svn commit log is displayed correctly (as login from...
Ksenia
1

votes
1

answer
101

Views

Use a different JAVA_HOME when running JUnit through Ant

Currently, I am running Junit from Ant. My environment variable JAVA_HOME is set to /path-to-jdk6 but I want the JUnit tests to run with /path-to-jdk8. How do I set that? This is my Ant target:
Vishnu
1

votes
0

answer
246

Views

“taskdef class …FindBugsTask cannot be found” warning by Eclipse in build.xml file

As part of my project's build.xml file, we have the following block: Recently, Eclipse IDE has started giving a warning on this line. The warning is 'taskdef class edu.umd.cs.findbugs.anttask.FindBugsTask cannot be found'. I run ant findbugs from Cygwin command line, and with the code as is, it work...
Django
1

votes
0

answer
232

Views

Migrating legacy ant project to maven / gradle

I have a legacy JAVA project and we use Ant to build it. We are planning to keep using ant for building the project but delegate the dependency management to maven/gradle without affecting the existing build process. What might be the best way to move forward - with Maven or with gradle? Since exist...
tryingToLearn
1

votes
1

answer
37

Views

How to locate specific property in ANT if the xml property file provided to ant has repeating xml elements

I am trying to read a property file (xml) in ANT. Following is the sample data. MyDomain DEV Host1 14100 adminserver true adminHost #NA 512MB 2048MB Host2 14110 managedserver01 false adminHost Cluster1 512MB 2048MB With this property file I can easily access Domain & Environment properties but How d...
Prats
1

votes
1

answer
213

Views

Ant <junit> task fails on Jenkins due to NoSuchMethodError: org.apache.tools.ant.types.resources.Resources.setCache(Z)V

I am running ant tasks on 1.7.1 version of Ant using ant jenkins plugin. Build fails due to following error - BUILD FAILED java.lang.NoSuchMethodError: org.apache.tools.ant.types.resources.Resources.setCache(Z)V at org.apache.tools.ant.taskdefs.optional.junit.BatchTest.(BatchTest.java:57) at org.ap...
Devendra Sharma
1

votes
0

answer
102

Views

Jboss 7.1.0 EJB2.0 Stub classes creation with Ant

We are trying to migrate my application from Websphere 6.1 to JBOSS server 7.1.0. In my application we are using EJB2.0 and EJB JARs are generated by using IBM ejbdeploy.bat through an Ant script. Stub classes are created by ejbdeploy.bat for the EJB interfaces (we have only interfaces and bean clas...
Lakshman
1

votes
0

answer
154

Views

ECLIPSE: BUILD FAILED

I am trying to build a JAVA EE project in Eclipse Oxygen. My system has Apache ANT version 1.10.2 with Eclipse ANT Runtime having 1.10.1. While building the concerned xml of my project I am getting the following error: [exec] BUILD FAILED [exec] java.lang.NoSuchMethodError: org.apache.tools.ant.laun...
kera_404
1

votes
0

answer
617

Views

JUnit Test Fails in Jenkins

My JUnit Tests run fine in eclipse and pass locally however in Jenkins my 1st test passes and 2nd one fails and I know why but cant figure out the solution. The Jenkins output says it cant find the element however it is there and I have the proper waits. Here is the 1st test case that passes. @Befor...
Jonathan
1

votes
2

answer
81

Views

Number of parameters passed in a Ant command line

I would know if it's possible using an Ant task to know the number of parameters passed to an Ant target ? For example, with the following command : ant myTarget -Darg1='arg1' -Darg2='arg2' I would like to be able, inside the 'myTarget' target, to get that the user passed exactly 2 arguments. I hav...
N. Beudez
1

votes
0

answer
36

Views

Managing conflicting dependencies in Java

I have a scenario where our application uses Hibernate 3.5.2 (I know it is old but it is battle tested and we can't change it) and I also recently had to add PowerMock for some tests. The issue here is that the Hibernate version is so old that it uses Javassist 3.9.0.GA whereas the oldest version of...
Konstantine
1

votes
1

answer
315

Views

upload artifact to artifactory with ant and curl results in empty file on server

I'm currently banging my head against this (wrong) behaviour. When I execute a CURL request in ant the upload results in a file with size=0 and when I execute the same request in the shell the file has the correct size. ANT target output: [echo] path.toFile=/home/marcel/gitrepos//source/.zip [echo]...
MarcelHodan
1

votes
0

answer
101

Views

Password protected zip file with Apache ant tag <zipFiles>?

How to create a password protected ZIP file with RTC Ant build script? Currently my Ant script was able to zip the out files and it is available in RTC download artifacts tab as a Zip file. Some how want to know if it is possible to create password projected zip file with ANT scripting. . .
balaji j
1

votes
1

answer
33

Views

Downloading scientific workflow kepler: Error ant in build .xml

When I try to download my kepler engine using cmd, I face this problem for the ant in the build.xml. I install the java, ant, and svn versions, and I don't have any problems. C:\Users\lenovo\kepler\build-area>ant change-to -Dsuite=kepler Buildfile: C:\Users\lenovo\kepler\build-area\build.xml BUILD...
nour
1

votes
1

answer
38

Views

ANT build is unable to recognize geckodriver executable “The driver executable does not exist”

I am not having any issues when running in Eclipse, but when I attempt to run an ANT build within Jenkins I get the following: java.lang.IllegalStateException: The driver executable does not exist: C:\Program Files (x86)\Jenkins\jobs\Update InforTAP Build\workspace\lib\geckodriver0-19.exe Image capt...
Mike Cook
1

votes
0

answer
20

Views

How can I use Ant's “Get Task” to fetch a whole directory full of files from a server?

I have some files stored on a WebDAV share and I'd like to use Ant's get task to fetch all of the files. I know I can fetch them all if I specify all of the filenames like this: But I'd like to avoid enumerating all files if possible, so that I can simply add more files to the WebDAV share and re-ex...
1

votes
0

answer
21

Views

ANT script : xmlcatalog not reading local dtd

I have XML file named TIBCOUniversalInstaller_TRA_5.10.0.silent as below.I want to replace values in XML file using 'replace' target in ant script using xmltask task. XML File is below: ---Universal Installer Silent Installation Properties--- true /opt/tibco TRA At time of parsing XML file ,since my...
Shrijeet Sinha
1

votes
1

answer
417

Views

After update to Java8, getting error during JiBX bind - [bind] java.lang.IllegalStateException: Error loading class java.lang.CharSequence

On my machine, I updated from Java 1.6 to Java 1.8. Now, while doing build getting below JiBXException in JiBX binding compilation. bind: [echo] Running JiBX binding compiler [bind] Error running binding compiler [bind] java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Err...
Jatin Gupta
1

votes
0

answer
11

Views

How to set a property in ant if another property start with a specific charcter?

I am new to ant I am currently rewriting a stuff which was written in groovy. I have a scenario where i want to set a property if some other property start with a charter c if(version.startsWith('c')) { test_version = version.substring(1) } else { test_version =version } I tried with conditional p...
Rajesh
1

votes
0

answer
91

Views

ant fixcrlf include/exclude does not work

I am having little problem with from ant. When I try to compile for unix target with fixcrlf filter, it modifies all files in the target folder, no matter of includes and excludes. I expect it should not convert any files that are not in the includes patterns, or at least I could force some files t...
armagedescu
1

votes
1

answer
64

Views

How to configure commit id while doing Deployment using VSTS and ANT (SALESFORCE)

I have created VSTS build job using ANT. I have performed following steps. Pulled everything from my Production Environment using retrieve functionality through ANT. Set up Source Control with production code using GIT in VSTS successfully. Created DEVELOP branch for development and changes. Commit...
user9794112
1

votes
0

answer
72

Views

How to set the install path on a self-contained app JavaFX .deb (Debian) package

I'm trying to generate a .deb file, containing a self-contained copy of my JavaFX application, using the Oracle JavaFX Ant fx:deploy Task. I've followed the samples on official documentation and my pom.xml configuration looks like this: maven-antrun-plugin 1.7 install run At the end of the build (mv...
1

votes
1

answer
52

Views

jar files included in build.xml is not taken in the classpath in the declared order

This is my build.xml file. I have included the jar files in the specific order which I require (This is important. If not I will get package is sealed exception). But the classpath I get is: [echo] Classpath is C:\Users\aswathy_krishnan\eclipse-workspace\MerckDemo\lib\iwats-scripting-library-v1.9.j...
aswathy
1

votes
1

answer
125

Views

Ant build fails because of insufficient permissions Windows 10

My build.xml file fails on this target tag. with this error... C:\Users\me\spaceballs\build.xml:29: Execute failed: java.io.IOException: Cannot run program 'C:\ProgramData\ComposerSetup\bin\' (in directory 'C:\Users\me\spaceballs'): CreateProcess error=5, Access is denied I am running windows 10 h...
J_C
1

votes
0

answer
85

Views

“java -jar” is ignoring absolute path

I am experiencing a lot of trouble while trying to run a jar file in the terminal. Until now, my command line looks like this: java -jar /usr/src/Apache_FOP/fop-2.3/fop/build/fop.jar Notice that i have already builded Apache FOP from source using Apache Ant, and the fop.jar is running fine when i r...
1

votes
0

answer
30

Views

Difference between global and local/offline pheromones in ACS

I'm trying to recreate the Dorigo approach (pseudocode and rules below) to ant colony optimization, using threads for each ant. My plan was to run every thread and wait for them to finish, so I could get the new node for every ant, and then update using the local pheromone update rule. But here come...
1

votes
0

answer
48

Views

Ant SVN partial build

I am currently working in a java application(web) where 'ANT'is used as a build tool and SVN as version control tool. This application contains 100's of java files and every time a small change occurs to any of the java file, the build process is taking all files into consideration for building the...
Syam Kumar
1

votes
0

answer
644

Views

Build.xml Compile failed; see the compiler error output for details

I am trying to create L2j server (Interlude) server. However when I'm trying to compile the server pack file I get into trouble. When I run build.xml as Ant build I'm getting Compile failed; see the compiler error output for details Error log Buildfile: C:\Users\tauti\git\l2j_server\L2J_Server\build...
Tautis
1

votes
1

answer
31

Views

From Ant to Maven

I am trying to mavenize an Ant project (web application) with Eclipse. To do so I tried the 'easy' way : Right click on the project → Configure → Convert to Maven Then I added the dependencies (the pom file looks fine and I don't have dependencies issues) The build (clean install) is successful...
Caroline
1

votes
1

answer
359

Views

Spring boot :unable to open nested entry 'WEB-INF/lib-provided/ecj-3.12.3.jar'

I am trying to obfuscate the spring boot application. Package : war I was following the ant script approach with yguard Link : http://codeaweso.me/2009/02/obfuscating-a-webapp-war-file-with-yguard-and-ant/ Project structure: main.war a.jar b.jar and many more third party dependencies. I can see we...
mahesh
1

votes
1

answer
23

Views

How to expand non-entity reference in xml file with Ant

I have an XML file with the following content: I want to read this file in Ant and put the attribute value of value in the node whose name value is 'full_path' into a property with Ant. I can easily do this, e.g. using with its element: However, what I get is ${name2}, which is meaningless to me....
coolcfan
1

votes
0

answer
95

Views

Jar file cannot find SWT library, but Eclipse can

I have an Ant build (see build.xml below) that compiles and runs as I expect within Eclipse. When I run the build via the command-line (java -jar swtgui.jar), however, I receive the following error: Error: A JNI error has occurred, please check your installation and try again Exception in thread...
lolololol ol
1

votes
0

answer
67

Views

Weblogic WsdlcTask for gradle

I am looking for the weblogic.wsee.tools.anttasks.WsdlcTask for gradle. All I could find so far was an example for Ant. Importing the ant script with ant.importBuild 'wsdlc_build.xml' works perfectly fine in my gradle build script, but I would prefer writing the task in gradle. Has someone already...
Julian

View additional questions