ant

Remove not needed resources from android library in apk

送分小仙女□ 提交于 2019-12-11 20:26:28
问题 I have a shared library that is used by multiple variance of the app. I want to be able to strip out unused library resources as per app configuration. I don't want to remove the resources permanently, so Lint does not help The resources are referenced by shared code, I just know that in certain variance, a sizeable chunk is not used The shared code which reference the resources are being used (just in certain usage variance, a sizeable chunk is not in play) so proguard also does not help I'm

ant build failed xxx\xxx\build.xml:49: Java returned: -1

﹥>﹥吖頭↗ 提交于 2019-12-11 20:20:46
问题 I am trting to build Blackberry project and generate the cod file. My environment is Windows 7 and the apache-ant version is 1.8.2. I have encountered two problems and they all lead to failure. The command I used to build is "ant -Dbuild_env=prod" Below is part of the code in the build.xml file. <property file="build.properties" /> <property environment="SystemVariable"/> <!--<property name="jde.home" value="${SystemVariable.JDE_HOME}"/> --> <property name="jde.home" value="E:\eclipse

failed to create task or type war-builder in worklight 6.2

孤街浪徒 提交于 2019-12-11 20:13:05
问题 I am using workklight 6.2 and wrote following ant task to build war file on linux machine command line. <taskdef resource="com/worklight/ant/defaults.properties"> <classpath> <pathelement location="opt/IBM/Worklight/WorklightServer/worklight-ant-builder.jar"/> </classpath> </taskdef> <target name="build-war"> <war-builder projectfolder="${basedir}" destinationfolder="bin/" warfile="bin/MyProject.war" classesFolder="classes-folder"/> </target> When I execute the task with following command "

Animated GIF in Splashscreen

坚强是说给别人听的谎言 提交于 2019-12-11 19:25:50
问题 I have a JAR file generated by an ANT script with the following code in it: <manifest> <attribute name="Main-Class" value="org.epistasis.exstracs.Main"/> <attribute name="Class-Path" value="."/> <attribute name="SplashScreen-Image" value="logo_anim.gif"/> </manifest> <!--Some code--> <zipfileset dir="." includes="logo.png"/> <zipfileset dir="." includes="logo_anim.gif"/> <zipfileset dir="." includes="icon.png"/> When I run the JAR file, no splash screen is generated. I verified that the GIF

Gradle : Exclude file creating jar in a subproject

独自空忆成欢 提交于 2019-12-11 19:09:55
问题 I have a multi-module-project. The structure is as follows. root-project ------------ ├── project-A │ └── src │ └── main │ └── resources │ └── myFile.xml ├── project-B │ └── src │ └── main │ └── resources │ └── myFile.xml └── project-shared └── src └── main └── resources └── myFile.xml (':project-A') is depends on (':project-shared') and (':project-B') My issue is when I build (':project-A') I have a filtertocken (to replace version number) in myFile.xml. So I need myFile.xml under project-A

How to kill Ant forked process?

大兔子大兔子 提交于 2019-12-11 18:17:20
问题 I have an Ant build file and there is a task in it. The problem is every time i kill the outer Ant process the forked process is still running out there, so there will be many java process in Windows Task manager, I wonder if there is way when i kill the outer Ant process it will kill all child process at the same time. Thanks. 回答1: Yes using "kill process tree will" kill all sub-processes. 来源: https://stackoverflow.com/questions/7864683/how-to-kill-ant-forked-process

testNG taskdef definition in Ant using Maven dependencies

◇◆丶佛笑我妖孽 提交于 2019-12-11 18:17:08
问题 I am trying to use Ant and Maven to build a project. I am using testNG for test units. As stated here ( http://testng.org/doc/ant.html ) I have defined the taskdef as follow: <taskdef resource="testngtasks" classpath="testng.jar"/> in Ant. In Maven I have added the following (as stated here: http://testng.org/doc/maven.html) <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.2</version> </dependency> Maven is getting the files from maven repository and I

Why is Phing running my build.xml, and then saying it doesn't exist?

陌路散爱 提交于 2019-12-11 17:52:15
问题 It's running my build.xml, when the error pops up that my build.xml is missing... This makes no sense. <project name = "php_project" default = "build" > <!-- ============================================ --> <!-- Target: prepare --> <!-- ============================================ --> <target name = "prepare" > <echo msg = "Making directory ./target" /> <mkdir dir = "./target" /> </target> <!-- ============================================ --> <!-- Target: build --> <!-- ======================

how to escape backslash in ant

醉酒当歌 提交于 2019-12-11 17:16:49
问题 I am writing Ant scripts. I have a property which has the value: "C\:Program Files\\test1\\test2" Is there a method in Ant to convert it to: C:Program Files\test1\test2 回答1: You could use : http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html although I am not sure if this will do what you are asking for. Are the backslashes visible when you echo your property? In any case to use the above task you will have to have ant-contrib installed and simply write a task like this :

ANT element in csv matching

随声附和 提交于 2019-12-11 17:14:26
问题 I need to write a regex to match an element in a comma-separated list, ignoring whitespaces near , . For example: elem1, elem2 ,elem3, elem4 ,elem5 ,elem6 Any of: elem1 elem2 elem3 elem4 elem5 elem6 should match. The trailing comma (before end of line) is not allowed. I tried this pattern: pattern="(^|/,)\s*@{value}\s*(/,|$)" but it doesn't work. (False negative) How can i do that pattern? What's wrong in mine? Thanks. 回答1: Interpolation is your problem. And, you can't consume the ',' on both