Questions tagged [ant]

Apache Ant (formerly Jakarta Ant) is a declarative, XML-based build tool created originally for Java projects. It provides a rich set of standard tasks for performing most common build operations, such as compiling Java source, building archives and running tests. Ant's functionality can be extended through custom tasks and macros.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Getting java.lang.Error: java.lang.reflect.InvocationTargetException in ant build.xml while using openjdk11

xjc tool configuration on my ant build.xml is <xjc destdir="${src.java.generated.dir}" package="task.config" readonly="false" removeOldOutput="yes" extension=...
user4888455's user avatar
-1 votes
0 answers
23 views

Ant task throws "Access denied for user" when connecting to MySQL

My Java application runs on a MySQL database locally using a user called 'dirtbag'. Everything is running OK (read and writes are possible from and to my application). Now I have set up some Ant tasks ...
RazorAlliance192's user avatar
0 votes
0 answers
14 views

Error running Ant build task on remote Jenkins node

I have Jenkins version 2.406 setup with a local controller node (using Java 11) and a remote agent setup to build apps. I getting an error The filename, directory name, or volume label syntax is ...
Tony's user avatar
  • 1
0 votes
1 answer
16 views

How to set Proxy Settings in Ant deployment

I'm trying to build this project groovyldap. I believe I'm running into a proxy issue. $ ant Buildfile: /Users/user/Projects/groovyldap/build.xml prepare: resolve: [ivy:retrieve] :: Apache Ivy 2.5.1 ...
3ch01c's user avatar
  • 2,216
0 votes
0 answers
17 views

Ant command 'war' fails with error 'jvxml.xml.lib doesn't denote a zipfileset or a fileset'

I'm trying to run JVoiceXML demo but I'm new to all theses new technologies. I succeed to run the demo except the servlet one (in which one you have to work with tomcat. The problem is: when I try to &...
Florian's user avatar
0 votes
0 answers
16 views

JUnit test running via ant returns No persistence provider for EntityManager

I have jsf aplication with connection to PostgreSQL. Also I wrote a test for checking this connection. It works fine when I run this test via maven, but it fails with "No persistence provider for ...
aleks_gright's user avatar
0 votes
0 answers
16 views

Running ant unit test project is stuck

I am trying to run this ant Java project and it builds fine when I run ant but when I run tests ant test it's stuck for hours. I am wondering if is there a way to see the status of unit tests? build....
Node.JS's user avatar
  • 990
0 votes
1 answer
18 views

Unable to find superadmin.p12 file after successful EJBCA deployment with JBOSS EAP and ant

I'm attempting to deploy and install EJBCA on CentOS 7.6 using JBOSS EAP 6.0.4 and ant. My database is MariaDB. After executing the commands ant deploy and ant install, the log files indicate a ...
zgli's user avatar
  • 1
0 votes
0 answers
16 views

How to use If condition in ant

How to call specific xml using if condition in ant. Eg: If A.xml file call A_setup.xml file. Want to use if condition in ant calling specific file. Could anyone can give examples how to use it and ...
Rohit's user avatar
  • 1
0 votes
1 answer
31 views

Proguard 7.3.2 not able to find classes when using openjdk-11

I am using openjdk-11 and proguard version is 7.3.2 and while build one of the module i am getting many warnings as below: [javac] Reading library jmod [/opt/jdk-11/jmods/java.base.jmod] (filtered) 17:...
user4888455's user avatar
0 votes
1 answer
26 views

How to (ant) build a subfolder from GIT?

In a Jenkins freestyle project, how to build an ant project that is in a subfolder? With SVN, we would just check out the folder with the ant files, but now with GIT, checking out a subfolder of a ...
David Balažic's user avatar
0 votes
1 answer
30 views

Is it possible in Ant to exclude one fileset from another?

I tried many different things that looked like they could work, but nothing really did. I just can't believe that something so simple and so useful is not implemented at all, so I thought, I'd ask ...
Dima's user avatar
  • 39k
0 votes
1 answer
36 views

How to run a jar file using ant and set the dependencies?

Problem Description I am trying to build a jar file of a Java Swing project using ant command The jar file is successfully created but when running, it can't resolve the dependencies somehow and ...
Pritam Kundu's user avatar
0 votes
0 answers
5 views

Stop Axis Stub creation in ant build.xml

As I was using Axis Jar before, to create Stub Classes from WSDL in ant build.xml, but faced some issues in Axis Jar. So I moved to CXF Jar creation to generate Stub Classes but I didn't cleanup the ...
Nickesh Balaji's user avatar
0 votes
1 answer
34 views

Ant and Bitbucket pipeline

I am new to bit bucket pipeline . My Project is in Java with Ant build and i want an sample bitbucket-pipeline.yml file with ant build .Any insight will be appreciated
Nirupam Sarkar's user avatar
0 votes
1 answer
49 views

Unable to read execution data file jacoco.exec

I want to get the code coverage of a GWT application using jacoco. The build is done using ant and the build file looks like this <jacoco:coverage destfile="${local.build.dir}/jacoco.exec"...
Reshu Kumari's user avatar
0 votes
2 answers
75 views

What is causing the error Exception in thread "main" java.lang.RuntimeException: Uncompilable code, with no other explanation except xml stuff?

I'm trying to make an EasyPrint class that allows you to print to the console with just print(), println(), and printf(), instead of having to do System.out or out. It also lets you set it to use a ...
Choosechee's user avatar
0 votes
1 answer
41 views

flyway-ant: No database found to handle jdbc:

I'm trying to set up an ant build calling some of the flyway-ant targets, but I always end up with build failures saying Flyway Error: No database found to handle jdbc:mariadb://<some_host>:3306/...
Torsten Crass's user avatar
0 votes
0 answers
34 views

Ant build is slow

Hi I am using an ant build to generate Hibernate java classes but I am having trouble. The task hbm2java is slow (10 mins and not finished yet....) Nothing particular in logs. /Library/Java/...
Alays's user avatar
  • 92
0 votes
0 answers
17 views

Generate core dump in ant script under linux

I'm trying to generate a core dump of application from ant script. At the moment I am able to generate core dump from ant script by encapsulating possibly crashing program with bash script. I would ...
piotr-buduje's user avatar
1 vote
1 answer
41 views

Can we make build of Angular project using Apache Ant build.xml?

I am trying to build of the Angular project using Apache Ant via build.xml but I could not find anything on internet, is it even possible to make build of Angular project using Apache Ant via build....
Vishal Yadav's user avatar
0 votes
1 answer
26 views

SSH worked fine but scp fails

I am able to SSH and SCP from my local to the server but when I try to ant deploy; it does not work for me but works for my colleague. I get permission denied error, I am unable to understand if I am ...
Tanu's user avatar
  • 1,259
0 votes
0 answers
22 views

How to Import multiple ant files in build gradle and run from azure Devops pipeline

I have multiple ant files in project and trying to run using build.gradle file in below way build.gradle ant.importBuild('test\abc.xml') { antTargetName -> 'a-' + antTargetName } ant....
unknown's user avatar
  • 1,785
0 votes
2 answers
36 views

"ExceptionInInitializerError" when querying Oracle DB from jar built with Ant, but it works fine in IDE

When I run my Java code in my IDE, it runs successfully. When I build a jar file and run it from the commandline, I receive a "java.lang.ExceptionInInitializerError" on the line which ...
TooManyCooks's user avatar
0 votes
0 answers
41 views

How to build angular Project war using Apache ant build.xml

<delete dir="${classes.dir}" /> <delete dir="${lib.dir}" /> <delete dir="${dist.dir}" /> <mkdir dir="${classes.dir}" /> <...
Vishal Yadav's user avatar
0 votes
0 answers
33 views

Build.xml in target folder is not updated with the jar dependencies newly added -- using ant to build

My Project build.xml is <project name="timesheet" default="build_war" basedir="."> <property file="${basedir}/properties/local.properties"/> <...
dhS's user avatar
  • 3,719
0 votes
1 answer
34 views

How to use Maven to create directories then copy jars and dependencies into those directories

I am converting a Java project from an any build process to Maven. Maven can currently compile the jars from the project but to fully replace Ant I need to do two additional steps: Create a file tree ...
 RichardFeynman's user avatar
-2 votes
1 answer
22 views

Deployment is showing jar errors which is already added

I have added a jsch-0.1.55.jar in my project but while deploying the project i am getting the error that the import are not working
dhS's user avatar
  • 3,719
0 votes
0 answers
34 views

Upgrade legacy Java Project from Ant (i.e. subant) to Maven

I have this java project handled by Ant modules (subant.xml) -src ¦ +---com ¦ ¦ +---SomePackage1 ¦ ¦ +---SomePackage2 ¦ ¦ +---OtherPackage ¦ +---businessPackage ¦ ¦ ...
Frank Cherry's user avatar
0 votes
0 answers
8 views

How can I append the logs of an ant execution to an existing log file?

Using the -logfile option overwrites the existing log file I tried using -logfile but it didn' help
supra's user avatar
  • 29
0 votes
1 answer
24 views

Use JNetPcap with Ant

I have an ant project, Here is the build.xml <project name="NAME" default="compile" basedir="."> <!-- set global properties for this build --> <...
SanjiSqurt's user avatar
0 votes
0 answers
13 views

Reading VM Option using ANT [duplicate]

I am new to ANT Script. In my Java Project in Intellij, I set VM Option as "-Dapplication.system". How can I read this value using ANT? the goal is to read -Dapplication.system (it could be ...
noName's user avatar
  • 133
0 votes
1 answer
44 views

Dockerfile PATH variables

I have some problems running my Dockerfile... It looks like this: FROM mcr.microsoft.com/windows/servercore:ltsc2019 USER ContainerAdministrator SHELL ["powershell", "-Command", &...
Mateusz Niedbal's user avatar
0 votes
0 answers
17 views

The task that is written in the microdef is terminating after the the microdef block executed

I am starting windchill through command prompt. So, for that using ant 'macrodef' task,I have written the buildscript for that, but after running that build script, I am able to start windchill but ...
sarla's user avatar
  • 1
0 votes
0 answers
10 views

Ant local build is failed

see error Try local build with ant, ant dist and ant dist.dist command, however same build failed error as shown in attached screenshot
 Madhuri Kamble's user avatar
0 votes
0 answers
72 views

Migrate from java 6 to Java 8/11

I'm trying to build my project in IntelliJ, it's a legacy application in which I'm migrating from Java 6 to Java 8 or 11 higher versions. java: cannot access org.apache.lucene.analysis.Analyzer bad ...
Madhavi R's user avatar
0 votes
0 answers
15 views

Passing parameter with embedded space from TeamCity to Ant

I have an Ant script that does some file manipulations; it has a set of input parameters, one of which is filename. I use this script from within TeamCity. In Teamcity I store the filename in a ...
TomT's user avatar
  • 11
0 votes
1 answer
110 views

Ant error: [javac] error: Source option 6 is no longer supported. Use 8 or later

I have a local copy of the repo at https://github.com/dwdyer/zeitgeist which I'm trying to build from. I followed the instructions in the repo's README file to build it using Ant, but got the ...
JJWakes's user avatar
0 votes
0 answers
29 views

Code coverage using Jacoco for GWT application

I want to generate a code coverage report for a GWT application using Jacoco. my build.xml file code <?xml version="1.0" encoding="utf-8" ?> <project name="MyApp"...
Reshu Kumari's user avatar
0 votes
0 answers
17 views

Code coverage for GWT project using Jacoco

I have a GWT application, I want to write unit tests for it using junit and check the code covergae and generate code coverage report. On the official documentation of GWT EclEmma and Emma is used. I ...
RESHU KUMARI's user avatar
0 votes
1 answer
35 views

Ant run failure to load main

I have oversimple Main.java file of next contents: public class Main { public static void main(String[] args) { System.out.println("Hello, world!"); } } The file was compiled by ant ...
BaruchLi's user avatar
  • 1,023
0 votes
0 answers
12 views

unable to import init.xml from build agent directory - team city

I have a team city agent which builds a ant project. when I am trying to build I am seeing below error. I have configured environment properties. Cannot find C:\Users*******\init.xml imported from E:\...
har123's user avatar
  • 49
0 votes
1 answer
95 views

Which Ant version supports OpenJDK 11 and OpenJDK17?

We are moving from IBM JDK 8 to Open JDK 11. Our build is using ANT 1.7.0 currently, and I am getting below error when I build project with OpenJDK 11 using ant 1.7.0 /home/devs/sbx/sand1_7000_db1/...
Devendra Sahu's user avatar
0 votes
0 answers
36 views

NullPointerException while resolving dependency with ant and ivy

I am new to Apache Ant and Ivy. I want to simply retrieve a jar from a custom URL (Bitbucket) which requires Basic Authentication. However, I am getting NullPointerException when I am trying to ...
kamimanzoor's user avatar
0 votes
0 answers
26 views

Command 'ivy' not found

I have been attempting to install Ivy for the past 6 hours, but so far, none of my attempts have been successful. I am currently using Ubuntu 20.04 and have tried installing Ivy using both apt and ...
Bhavya Patel's user avatar
0 votes
0 answers
33 views

Eclipse - Ant Build - Package does not exist - javac , but .jar libs are included in build.xml

I have searched a lot , as I know there is a good amount of questions in SO related to this subject , though i couldn't find an answer that resolves my issue. I am using Ant in Eclipse , I want to ...
Alex Lemesios's user avatar
0 votes
1 answer
57 views

How to set a default value to a string using System Poperties?

I'm trying to use Java system properties to take values from Command line as follows in my build.xml file - <target name="endPoint depends="standard-release"> <java ...
jjl's user avatar
  • 15
0 votes
0 answers
34 views

The following error occurred while executing the dataloader using CLI and ANT

BUILD FAILED `C:\Users\harsridh\Desktop\config\build.xml:73: The following error occurred while executing this line: C:\Users\harsridh\Desktop\config\build.xml:52:java.lang.NoSuchMethodException: com....
Harry's user avatar
  • 1
1 vote
1 answer
40 views

How Can I use this command line in Ant

I need to update my file jar using ant by using this line command : jar -uf sample.jar [path in jar file] target-file I tried this : <target name="UpdateJar" depends="Compile"&...
panda's user avatar
  • 21
0 votes
1 answer
24 views

How to move a file into an existing Jar using Ant

Can anyone please explain to me what thatt code do :<target name="MoveFIle">             <exec executable="C:\\Program Files\\Java\\jdk1.8.0_131\\bin\\jar" dir="${...
panda's user avatar
  • 21

1
2 3 4 5
309