ant

Hudson failing to start

▼魔方 西西 提交于 2020-01-05 12:28:49
问题 I had hudson running on windows server successfully. needed to restart the hudson service. After restart i am getting below error. Any idea, or if anybody experienced this issue. org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at hudson.model.Hudson.executeReactor(Hudson.java:719) at hudson.model.Hudson.<init>(Hudson.java:616) at org.eclipse

ant javadoc does not build

拥有回忆 提交于 2020-01-05 08:38:08
问题 This is my first java project deploying ant. I have to submit my code soon and do not have time for Hello World sort of thing for Ant. I tried to make a build.xml for my project after doing a bit of google but now i am stuck! The ant javadoc does not work for me. Below is the error it displays when given the command : ant javadoc -debug Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor BUILD FAILED Target "javadoc" does not exist in

Removing comment in ini file writen by ant when updating the ini file

南楼画角 提交于 2020-01-05 08:12:12
问题 I have an ant file which updates the data in ant file due this ini file gets updated and at the top it has a comment as follows #Thu, 07 Jul 2011 06:54:54 -0500 I don't want this comment as i am accessing this file by php using parse_ini. Due to this comment i get an failure Comments starting with '#' are deprecated in build.ini on line 1 so is there any way so that i will not get the comment in ini file. Thanks. EDIT: <propertyfile file="build.ini"> <entry key="build-number" type="int"

Migrating legacy ant project to maven / gradle

試著忘記壹切 提交于 2020-01-05 08:07:25
问题 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 existing project has it's own structure(which may not conform to standard Maven archtypes), I know might have to make a custom archtype if using maven. https://stackoverflow.com/a/48791837/2458858

Difference between Export “Ant Buildfiles” and PDE Tools -> Create Ant Build File

非 Y 不嫁゛ 提交于 2020-01-05 07:54:10
问题 I want to create the Ant build script for my XText plugin. I read through few articles/tutorial for creating Ant script. I came across 2 ways of creating the Ant script automatically: On plug-in project Right click -> Export -> Ant Buildfiles Right click on the MANIFEST.MF or build.properties or feature.xml and PDE Tools -> Create Ant Build File. Could someone let me the difference between the above 2 ways? 回答1: Export...>Ant Buildfiles will generate a build.xml to build your project as a

Use Tomcat Library in Webapp project

送分小仙女□ 提交于 2020-01-05 07:43:14
问题 I have a web application that uses the Tomcat library. I have not copied the jars from the Tomcat library into the web-inf/lib directory. Now when I run an ant build / testNG class, it throws an error since the concerned jars are not present under the web-inf/lib directory. Is there any way (configuration) that I can use the Tomcat library for the running the ant build / testNG classes. Thanks in advance, Vivek 回答1: In the <testng> task, just provide the tomcat libraries as additional

Android aapt duplicate files error when building with ant

拟墨画扇 提交于 2020-01-05 07:39:24
问题 I am using ant to make a build system for our android project which has two build targets, Dev and Release. This involves replacing the default -package-resources target with my own one in my build.xml. It goes from this: <target name="-package-resources" depends="-crunch"> <!-- only package resources if *not* a library project --> <do-only-if-not-library elseText="Library project: do not package resources..." > < aapt executable="${aapt}" command="package" versioncode="${version.code}"

install jar built from ant task into local maven repository

对着背影说爱祢 提交于 2020-01-05 07:25:48
问题 This is the command I want to run at the end of my Ant script: mvn install:install-file -Dfile=C:\dev\common\somejar.jar -DgroupId=com.myco.gt -DartifactId=somejar-Dversion=1.0.0 -Dpackaging=jar -DgeneratePOM=true If I enter the following target at the end of my Ant script: <target name='install_mvn_dependencies' depends='build_jars'> <exec executable="mvn"> <arg value="install:install-file"/> <arg value="-Dfile=c:\dev\common\somejar.jar"/> <arg value ="-DgroupId=com.myco.gt"/> <arg value="

Change values of list in ANT

拟墨画扇 提交于 2020-01-05 05:55:52
问题 I need to change the values of an ANT-script list in real time. This is the situation; I have these properties: x.y.6.1=something1 x.y.6.2=something2 x.y.6.3=something3 list=6.1,6.2 I want the list to become list=something1;something2 This is the gist of the code; <target name="target1"> <foreach list="${list}" target="target2" param="var" delimiter="," /> </target> <target name="target2"> <propertycopy name="var" from="x.y.${var}" silent="true"/> </target> Now, the propertycopy part works,

Getting play error in the Scala ant build

可紊 提交于 2020-01-05 05:39:08
问题 I am using play 1.2.7 and Following is my build script for scala files: <target name="init"> <property name="scala-library.jar" value="${env.SCALA_HOME}/lib/scala-library.jar" /> <path id="build.classpath"> <pathelement location="${lib}/anorm_2.10-2.3.1.jar"/> <pathelement location="${lib}/bootstrap-3.2.0.jar"/> <pathelement location="${lib}/jbcrypt-0.3m.jar"/> <pathelement location="${lib}/play-1.2.7.jar"/> <pathelement location="${lib}/play-ws_2.10-2.3.1.jar"/> <pathelement location="${lib}