ant

Android ant build project failure

China☆狼群 提交于 2019-12-11 02:35:48
问题 I am trying to create android UI test. I have followed the example in this link: http://developer.android.com/tools/testing/testing_ui.html#running. Note that in phase "Building and Deploying Your uiautomator Tests", there is a mistake, the first command must be /tools/android create uitest-project -n -t 1 -p . Anyway, this is not my problem. My probelm is in step "ant build", I am getting this error: -post-compile: -dex: [dex] input: c:\Users\tabony\workspace\bin\classes [dex] Converting

Emma reports 0% coverage

你离开我真会死。 提交于 2019-12-11 02:29:23
问题 I want to get code coverage when running unit tests. I run ant coverage using standard android build.xml for tests. Tests run well. The last strings from ant coverage are Tests run: 59, Failures: 1, Errors: 4 Generated code coverage data to /data/data/my.package/files/coverage.ec But the coverage.ec file is only 37 bytes long and is almost empty. Running emma report on it tells no collected coverage data found in any of the data files [all reports will be empty] and generates beautiful report

Deploy Maven site using FTP Ant task

房东的猫 提交于 2019-12-11 02:23:27
问题 I am trying to deploy a Maven site to an FTP server. I am using the following code in my pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ftp</id> <phase>post-site</phase> <configuration> <tasks> <ftp action="del" server="nexus" remotedir="/pub/${project.groupId}/${project.artifactId}" userid="anonymous" password="my.name@gmail.com" skipFailedTransfers="true" ignoreNoncriticalErrors="true"> <fileset>

Change default ant target by command line argument

最后都变了- 提交于 2019-12-11 02:08:30
问题 I'm recently assigned a task to make ant be able to build war packages for different environments. I'm almost done except one feature. The ant accepts an env parameter by like -Denv=DEV , and use different configuration files to make the war package. But the default target is start which will build, deploy and start the tomcat. I don't want ant to deploy the war neither start the server when I pass in the -Denv=PROD arg. I only want ant to build the ROOT.war. It's enough. I know I can just

How to make Jenkins display fail if one of the ant tests fail

吃可爱长大的小学妹 提交于 2019-12-11 02:07:03
问题 I have several tests that should be executed regardless of each other's success and I want Jenkins/Hudson to display red light if at least one of those tests failed. My current (simplified for clarity) configuration is as following: ci.sh : ... ant ... build.xml : ... <target name="AllTests"> <antcall target="TestA"/> <antcall target="TestB"/> <antcall target="TestC"/> </target> <target name="TestA"> ... <exec executable="..." failonerror="false"/> ... </target> <target name="TestB"> ...

Compiling j2me using Ant

ぃ、小莉子 提交于 2019-12-11 02:05:37
问题 I have created a J2ME project after referring to this article J2MEUsingAntwithJ2ME. Now I am having problems in adding resources (such as images) and libraries (such as jar and zip files). I have copied the resources in the res folder as shown in this article but when I extract the .jar file, it does not have any resources. 回答1: From the sample: <jar basedir="${build}/preverifiedobf" jarfile="${build}/bin/${program_name}.jar" manifest="bin/MANIFEST.MF"> <fileset dir="${top}/${res}"> <include

Repackaging the .jar file

跟風遠走 提交于 2019-12-11 01:53:47
问题 I need to add some jars from JRE7 library to my Android project. But for example rt.jar is in conflict with android.jar from Adroid 2.2 SDK, so I get this error: Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely

How to increase Sonar java heap size?

五迷三道 提交于 2019-12-11 01:48:37
问题 I am analyzing quite a large project with Sonar. The first few runs went OK but now I get error. Something to do with timemachine and violation analyzer: java.lang.OutOfMemoryError: GC overhead limit exceeded at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:131) at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70) I execute Sonar using ANT. Can I increase the java heap size

Unable to build android test project with ant

♀尐吖头ヾ 提交于 2019-12-11 01:45:46
问题 I have a sample Android app, created with Eclipse, having one Activity. I ran this command to build the ant build files for this project: android create project --target 8 --name SampleApp --path ./SampleApp --activity MainActivity --package com.example.sampleapp Running "ant debug" successfully builds the project and creates the apk files: -post-build: debug: BUILD SUCCESSFUL Total time: 1 second Now, I want to create an Android Test Project. I run this command: android create test-project

Enabling Console output for exec ANT task

妖精的绣舞 提交于 2019-12-11 01:42:04
问题 Inside eclipse I'm launching an html page with a swf embedded from ANT using the following Macrodef: <macrodef name="runhtml"> <attribute name="url" /> <attribute name="browser" default="${app.browser.firefox}" /> <sequential> <exec executable="open" vmlauncher="true" spawn="false" failonerror="true"> <arg line="-a '@{browser}'" /> <arg line="@{url}" /> </exec> </sequential> </macrodef> Despite the fact that the swf contains traces, I am not getting any output from them in the console. What