ant

ant command does not generating apk file

旧街凉风 提交于 2019-12-23 16:34:43
问题 I am using Ant to build my application.my app uses a library project.so first of all i had run the below command in commandline to generate the build.xml in my project. " android update project --target 5 -p path_of_my_project -l path_of_my_library_project " (my application's build target is 4.0).Above command generated a build.xml file in my project.Then i run "ant" command in command prompt.it has shown the result as BUILD SUCCESSFULL. but when i checked my project's bin folder there is no

Findbug - ANT xslt stylesheet source code references

喜欢而已 提交于 2019-12-23 16:28:21
问题 I have an ANT target that runs findbugs twice on the same source code to generate a xml and html report <delete dir="${findbugs.dir}"/> <mkdir dir="${findbugs.dir}"/> <findbugs home="${findbugs.home}" output="xml" outputFile="${findbugs.dir}/findbugs.xml" jvmargs="${findbugs.jvmargs}" timeout="${findbugs.timeout}" effort="${findbugs.effort}"> <sourcePath path="${src.dir}"/> <class location="${build.classes.dir}"/> </findbugs> <findbugs home="${findbugs.home}" output="html" outputFile="$

How to configure Jenkins in order to build project using ant and custom args

大城市里の小女人 提交于 2019-12-23 16:06:51
问题 There's too much routine with building next project version using ant. The routine is in several properties files that must be edited before running ant task. I took a look at Jenkins as a system to make builds (including night ones) but I have a problem with changing properties. Is it possible (if yes, how can I do it) to type parameters in Jenkins configuration before build in order they will be passed to ant? What I really mean is the following schema (I used in manual builds): there're 2

How can I exclude a list of files (held in a file) from an Ant fileset?

不想你离开。 提交于 2019-12-23 15:44:26
问题 Is there a way to have an Ant Fileset->IncludesFile attribute take a property file OR any other file that contains a list of Java class files to exclude? Eg: File A.properties OR A.java contains listing abc.class mno.class xyz.class Is there a way to say to point excludesFile to file A.properties. <fileset dir="..."> <excludesFile file="A.properties" /> </fileset> The behavior that I want is when Java runs, it excludes the Java files listed in this file (A.properties) 回答1: Hmm...not sure if

How can I exclude a list of files (held in a file) from an Ant fileset?

…衆ロ難τιáo~ 提交于 2019-12-23 15:43:58
问题 Is there a way to have an Ant Fileset->IncludesFile attribute take a property file OR any other file that contains a list of Java class files to exclude? Eg: File A.properties OR A.java contains listing abc.class mno.class xyz.class Is there a way to say to point excludesFile to file A.properties. <fileset dir="..."> <excludesFile file="A.properties" /> </fileset> The behavior that I want is when Java runs, it excludes the Java files listed in this file (A.properties) 回答1: Hmm...not sure if

Combined test coverage report with jMockit

家住魔仙堡 提交于 2019-12-23 15:41:02
问题 I am using jmockit with Ant. For each test file run, an index.html file gets created/over-written in the coverage report folder. For multiple test files, this index.html gets over-written. I am looking for a combined report for all files. what should be done? I have read about using .ser files but I do not know how to create and then use them? 回答1: Have a look here. The trick is to set -Djmockit-coverage-output=merge (or serial - read up on the differences in the link above). Cheers, 来源:

Java NoClassDefFoundError when running jar containing library jar

北战南征 提交于 2019-12-23 15:35:30
问题 After several hours, I'm at my wit's end, even after reading reams of documentation and SO questions. I'm certain that I'm missing something obvious, but I just can't figure it out. I've created a number of java files, including a single entry point with a main method. That class also makes use of one "library" class, located in com.test.lib.MyLibraryClass.class, within a jar file, mylib.jar. I'm building my jar file successfully using the following ant XML. <target name="jar" depends=

How to specify multiple binding files in gradle for ant xjc task

拥有回忆 提交于 2019-12-23 15:27:59
问题 I have multiple bindings(xjb files) in the gradle project. When generating JAXB classes for a xsd(C.xsd). I want to use the previously generated binding files for A.xjb & B.xjb since C.xsd refers to A.xsd & B.xsd The below ant xjc task works if I don't have anyother bindings in same path but I want specify explicity A.xjb & B.xjb bindings. How to go about same, I tried various options but nothing seems working. Any help greatly appreciated. ant.xjc(destdir : '${jaxbDest}', removeOldOutput:

How can I use an Ant foreach iteration with values from a file?

回眸只為那壹抹淺笑 提交于 2019-12-23 13:26:10
问题 In our Ant build environment, I have to do the same task for a number of items. The AntContrib foreach task is useful for that. However, the list is in a parameter, where I actually have the list in a file. How can I iterate over items in a file in an foreach-like way in Ant? Something like (pseudo-code): <foreach target="compile-module" listFromFile="$fileWithModules"/> I'm happy to write a custom Task, and welcome any suggestion on possible solutions. 回答1: I tried to load the file into a

How to pass multiple parameters to a target in Ant?

喜欢而已 提交于 2019-12-23 13:16:17
问题 I have this dummy target: <mkdir dir="${project.stage}/release <war destfile="${project.stage}/release/sigma.war"> ... ... </war> What I want to do is provide two parameters say "abc" & "xyz" which will replace the word release with the values of abc and xyz parameters respectively. For the first parameter say abc="test", the code above will create a test directory and put the war inside it.Similarly for xyz="production" it will create a folder production and put the war file inside it. I