ant

Emma does not generate coverage.ec

▼魔方 西西 提交于 2019-12-21 20:10:20
问题 I setup Emma and it used to work for me. Then we had source code changes and now it doesn't generate coverage.ec at all. It does generate coverage.em . Near the end of testing, it has error messages: [exec] INSTRUMENTATION_CODE: 0 [echo] Downloading coverage file into project directory... [exec] remote object '/sdcard/coverage.ec' does not exist BUILD FAILED /var/lib/jenkins/android-sdk-linux_x86/tools/ant/build.xml:1056: exec returned: 1. Line 1056 of build.xml is "{adb}" failonerror="true".

How to override ant task stored in ant lib directory

冷暖自知 提交于 2019-12-21 19:53:50
问题 At my work we use AspectJ in some of our Java projects. To get this to work with ant builds we have been placing aspectjtools.jar within ant/lib/. I am now working on a particular Java project and need to use a newer version of aspectJ. I don't want to have to get everyone who uses the project to update their local copy of aspectjtools.jar. Instead, I tried adding the newer aspectjtools.jar to the lib directory of the project and adding the following line to build.xml. <taskdef resource="org

Cannot find Tools.jar

不问归期 提交于 2019-12-21 19:53:47
问题 I am trying to build a copy of JOGL but ant keeps giving me the error cannot find tools.jar. so i searched within my JDK dir and i also cannot find it. can someone help me with locating tools.jar 回答1: Are you sure you're searching your JDK directory instead of the JRE directory? I'd expect it to be in the JDK lib directory. For example, on my machine I have: c:\Program Files\Java\jdk1.6.0_26\lib\tools.jar If Ant can't find it, make sure you're running the version of Java in the JDK directory

java.lang.ClassNotFoundException when running java -jar

邮差的信 提交于 2019-12-21 19:53:02
问题 I'm using ant to build my build.xml file, it compiles ok, but then getting a runtime java.lang.NoClassDefFoundError when running the resulting jar via " java -jar my_jar.jar ". It seems like this comes up a lot but none of the related questions' solutions worked for me. My classpath for javac contains only " /usr/local/lib/libthrift.jar " and the main .java file imports a bunch of thrift packages such as org.apache.thrift.transport.TTransportException . When I try running the program via:

error: option -Xbootclasspath/p: not allowed with target 12 (Netbeans 11.0)

◇◆丶佛笑我妖孽 提交于 2019-12-21 19:50:11
问题 I am upgrading my IDE to newest versions of netbeans (11.0) and jdk (12.0). When i make a simple basic Web Application With Ant Project, i can't compile it because the output shows following error message: error: option -Xbootclasspath/p: not allowed with target 12 BUILD FAILED (total time: 1 second) Obviously Ant script uses this option and jdk 12 does not allow it? But how to fix this?? EDIT: this is the section (build-impl.xml) where the option -Xbootclasspath is used. This is a netbeans

Generating XML Schema from JAXB class files in Ant

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 19:49:13
问题 Is it possible to use the shemagen ant Task to generate an xsd schema from class files instead of from source? 回答1: You could probably write something fairly easily, and then call it from Ant: import java.io.File; import java.io.IOException; import javax.xml.bind.JAXBContext; import javax.xml.bind.SchemaOutputResolver; import javax.xml.transform.Result; import javax.xml.transform.stream.StreamResult; public class SchemaGenerator { public static void main(String[] args) throws Exception {

How to parse and interpret ant's build.xml

﹥>﹥吖頭↗ 提交于 2019-12-21 17:58:11
问题 Is there an Ant API for reading and ant build.xml and retrieving elements from it? Specifically I want to be able to retrieve the values in a path element and be able to walk all of the elements in the path. My purpose is to retrieve a given path and ensure that it is referenced correctly in a manifest, so that the build and the manifest match when the product goes out to production. EDIT: Regarding the responses (and thank you for them) to use an XML API, the problem is that the build file

How to parse and interpret ant's build.xml

风格不统一 提交于 2019-12-21 17:58:09
问题 Is there an Ant API for reading and ant build.xml and retrieving elements from it? Specifically I want to be able to retrieve the values in a path element and be able to walk all of the elements in the path. My purpose is to retrieve a given path and ensure that it is referenced correctly in a manifest, so that the build and the manifest match when the product goes out to production. EDIT: Regarding the responses (and thank you for them) to use an XML API, the problem is that the build file

how to build eclipse rcp application from .product with ant on jenkins

北战南征 提交于 2019-12-21 17:52:26
问题 I'd like to build an Eclipse RCP application. I have a Product configuration file and a target platform with lots of third party plugins. The export from the Eclipse IDE works flawlessly. But that is hardly professional. So I'd like to get it to work on Jenkins, too. The build server gets the files from SVN, doesn't have Eclipse and should do it all headlessly anyway. I do not want to use Maven/Tycho or Buckminster. I'd like to do it a simple as possible. Since I know a bit about ant already,

Does the ADT plugin automatically create an ant build file?

廉价感情. 提交于 2019-12-21 16:33:45
问题 I created an Android project a few months ago and now have to automate the build process with Hudson. The Android dev guide mentions a build.xml file that gets created when you generate a project (http://developer.android.com/guide/developing/other-ide.html) but I dont see one in my project. Will I have to create this by hand or can I run a command to generate it? 回答1: The ADT plugin doesn't generate an Ant file. The android command will generate an Ant file when you create a new project from