ant

Android library projects custom builds

允我心安 提交于 2019-12-12 10:54:15
问题 I have a legacy application and need to split it into a library project (common code) and two application projects (paid and free applications). I don't use Eclipse for development, and also don't use Ant builds provided (generated) by Android SDK (there are several reasons for that: different project directory structure, unit tests integrated into the build, integration with CruiseControl, automatic builds numbering etc), but use our custom build files instead. I need to modify my Ant builds

Override ignored for property

試著忘記壹切 提交于 2019-12-12 10:53:50
问题 Content of Build.xml File <?xml version="1.0"?> <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="ant-contrib-0.6.jar"/> <taskdef classpath="orangevolt-ant-tasks-1.3.2.jar" resource="com/orangevolt/tools/ant/taskdefs.properties"/> <project name="initinstaller" default="all" basedir="." > <target name="configure-server-types-module"> <property file="./installation.conf"/> <echo message="${client.server.types}"/> <if> <not> <contains string="${client.server.types}"

How to use GCJ with Ant?

99封情书 提交于 2019-12-12 10:44:50
问题 I'm fairly new to both Apache Ant and GCJ, and I'm having a hard time trying to build with GCJ via Ant. My app is in Scala, so I need to use GCJ to take .class files as source. No problem compiling .scala to .class with Ant. First I figured out how to manually compile a .class file to .o (object), this way: gcj --classpath=(...) -c (somepath)MouseClickListener.class -o (somepath)MouseClickListener.o I see here that Ant supports GCJ compilation through the javac tag. So I figured this should

Ant loadproperties failed (bcel error?)

Deadly 提交于 2019-12-12 10:39:42
问题 I'm working on a simple build script that should get some constants from a java class file and use them as the version numbers in my file names. I use Eclipse and its own Ant, but put bcel-5.2.jar in my libs folder and into the classpath for the Ant call. <target name="generate_version" depends="compile"> <loadproperties srcfile="${dir.dest}/MyVersion.class"> <classpath> <fileset dir="${dir.libs}"> <include name="**/bcel*.jar"/> </fileset> </classpath> <filterchain> <classconstants/> <

How to generate JUnit test reports on android for jenkins

别说谁变了你拦得住时间么 提交于 2019-12-12 10:37:42
问题 I'am trying to make use of the "Publish JUnit test result report" in Jenkins, but can't get it to work for my android test project. The setup of my android test project in Jenkins is based on this guide: https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project I hope someone could post an easy step by step guide on how to get the JUnit test result reports out of the test run to being able to use "Publish JUnit test result report". Would like to use this feature

How to add to classpath all classes from set of directories in ant?

微笑、不失礼 提交于 2019-12-12 10:36:12
问题 How to add to classpath all classes from set of directories? I have following property: class.dirs=lib1dir,lib2dir,lib3dir There are classes under these directories. Is it possible to add all classes under these directories to classpath? Something like: <classpath> <dirset dir="${root.dir}" includes="${class.dirs}/**/*.class"/> </classpath> or <classpath> <pathelement location="${class.dirs}" /> </classpath> But this example does not work, of course. 回答1: You can set up a path to include all

Using groovy.util.AntBuilder from java

五迷三道 提交于 2019-12-12 10:16:55
问题 In groovy the groovy.util.AntBuilder can be used to eg. unzip a file into a folder: AntBuilder ant = new AntBuilder(); ant.unzip(src: file.getPath(), dest: outputFolder.getPath()); Now I would like to do the same but from java. Its not possible to call unzip directly. I assume thats what the invokeMethod is for: AntBuilder ant = new AntBuilder(); String[] args = new String[4]; args[0] = "src"; args[1] = file.getPath(); args[2] = "dest"; args[3] = outputFolder.getPath(); ant.invokeMethod(

Compress JS and CSS while deployement

怎甘沉沦 提交于 2019-12-12 09:56:45
问题 I am using ANT to deploy build in to Tomcat Server. I Want to compress the static files CSS and JS only when i deploy to the server. any suggestion? 回答1: You can do something like that as part of the build (using YUI Compressor) <target name="js.minify"> <apply executable="java" parallel="false"> <fileset dir="." includes="foo.js, bar.js"/> <arg line="-jar"/> <arg path="yuicompressor.jar"/> <srcfile/> <arg line="-o"/> <mapper type="glob" from="*.js" to="*-min.js"/> <targetfile/> </apply> <

worklight ant task app-deployer - Unauthorized error when WL console security is active

人走茶凉 提交于 2019-12-12 09:49:14
问题 I'm trying to deploy an application to a WL Server v5.0.5 using the provided ant task app-deployer. Here the simple buildfile I use: <?xml version="1.0" encoding="UTF-8"?> <project basedir="." name="deployWL"> <target name="deploy_application"> <taskdef resource="com/worklight/ant/defaults.properties"> <classpath> <pathelement location="C:/Worklight50/WorklightServer/worklight-ant.jar"/> </classpath> </taskdef> <app-deployer worklightServerHost="http://localhost:9087/worklight" deployable="C:

mkdir in ant fails. How can i handle this error

谁都会走 提交于 2019-12-12 09:37:01
问题 The ANT build script I have does the following: Perform the builds on Windows server & Zip the binaries Map a network drive with different credentials to a local drive (ex P:) using net use I am using <mkdir> to create a directory on the mounted drive (P:) Copy the binaries to that drive Below is my code for mkdir <echo>Creating ${buildRequesterUserId} folder at mirroring site starts</echo> <mkdir dir="P:\build_output\${buildRequesterUserId}"/> <echo>Creating ${buildRequesterUserId} folder at