ant

Travis: how to know android sdk/ndk path?

ぐ巨炮叔叔 提交于 2019-12-12 03:02:32
问题 My android project is built with Ant and i have to edit ant.properties manually file to pass sdk.path variable pointing to android sdk directory. i'm going to change it to get sdk path from environment variable to make build possible on Travis CI. What is android sdk variable for this? Also i have some jni code to be built with android ndk, so the similar question - what is env variable for android ndk on Travis? 回答1: Don't use the Travis's Android support; it uses the old 'android' CLI

How to include maven dependency libraries in war file using Ant build

ε祈祈猫儿з 提交于 2019-12-12 02:52:28
问题 I'm trying to include the maven dependencies files while build WAR file through ant. Here is the pom.xml. I've tried multiple solutions including executions etc but nothing works. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>CustomerPortal</groupId> <artifactId>CustomerPortal</artifactId>

How to set JRE for ANT right in console parameter, not in Eclipse

自古美人都是妖i 提交于 2019-12-12 02:48:44
问题 My question is the same, but I do not know how to set another JRE right in ant! I need to run scripts in console like "path-to-buil-xml/ant" I do that in Eclipse and I select JRE that I need, but how to set it in console ant? What the name of parameter? eclipse: change jre that is used to run ant I need to build my project in the conditions when I do not have Eclipse. Now I can compile project with Eclipse when I change JRE from C:\Program Files\Java\jdk1.6.0_27 to another JRE 1.4. I can do

How can i pass two variable in one Ant target by spliting commas

房东的猫 提交于 2019-12-12 02:48:14
问题 I have one deploy.path1=A,B,C,D,E and deploy.path2=1,2,3,4 and I want to use A and 1 in one target Deploy like below eg at one time means both should be available at same time like A,1 then next time B,2 and so on... <target name"deploy"> <echo message="${A}"/> <echo message="${1}"/> </target> How can i do this? Currently I'm using <foreach list="${deploy.loc2}" param="deploy_javapass" target="copy_patch_javapass" delimiter="," inheritall="true" inheritrefs="true" parallel="false" trim="true"

SQL ANT TASK ERROR: Class Not Found: JDBC driver com.microsoft.sqlserver.jdbc.SQLServerDriver could not be loaded

◇◆丶佛笑我妖孽 提交于 2019-12-12 02:47:00
问题 I want to run an SQL query using the ant tasks, and I am using the SQLServerDriver (sqljdbc.jar). This jar file is located where I have all of my jars needed to run the application (WebContent/WEB-INF/lib) This directory is my classpath which I defined it in another TASK Command: <!-- Define el classpath que es utilizado para compilar los archivos --> <path id="classpath"> <fileset dir="${libs.dir}"> <include name="*.jar" /> </fileset> </path> This jar file is also indicated in my ecplise

How do I set up a FLEX_HOME environment variable in Flash Builder

喜夏-厌秋 提交于 2019-12-12 02:46:40
问题 When I try to run Ant build script in Flash Builder error will generate. So I put export FLEX_HOME=/Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0/ in my .zshrc . This works fine in command line, but doesn't in FB. build.xml <?xml version="1.0"?> <project name="helloworld" basedir="../" default="compile"> <!-- Set up prefix for all environment variables --> <property environment="env" /> <fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in

Ant target execution(Just execute, not wait to complete)

大城市里の小女人 提交于 2019-12-12 02:45:12
问题 Currently I have one build file like <target name="test1"> </target> <target name="test2"> </target> .... <target name="test" depends="test1,test2"> </target> There is one problem, when run target "test1", ant always timeout(Confirm with Dev, ant is waiting for some back-end task completed in Runtime, this is correct)。 But based on that, the whole ant execution will be interruppted by the failure of test1, test2 will not be executed. So question is is there any way to tell ant, for test1, you

Self-signed Certificate - Unable to connect using ANT Build

隐身守侯 提交于 2019-12-12 02:44:42
问题 I'm trying to connect to all the links in a particular webpage and get the response to see if the link is broken. Some of the links are SSL that too self-certified. So, I've followed the procedure of adding the certificate to trust store. After that it worked fine, when I tested the same in Eclipse(it returned OK/200). But, when I build and run the project using ANT in command line, the same exception appears. And it is weird that it doesn't happen when I build using the same xml through

build ant error Compile failed; at line fork=“${need.javac.fork}”

China☆狼群 提交于 2019-12-12 02:28:24
问题 When i try to build my project i got error line custom_rules.xml:63 is: line 78 is : fork="${need.javac.fork}"> Parameters of build are -Dsdk.dir=C:\Users\bou\sdk -Ddeploy.env=preprod_artiste1 -verbose after build i want replace folder res by another res in res-xxxxxx\res-artiste1\res BUILD FAILED C:\Users\bou\native-android\custom_rules.xml:63: The following error occurred while executing this line: C:\Users\bou\native-android\custom_rules.xml:78: Compile failed; see the compiler error

dependent target getting excecute multiple times in a parallel target call

梦想与她 提交于 2019-12-12 02:22:14
问题 i want to run few targets of ANT build in parallel. here is the code i tried <project name="cis" default="release"> <property name="Run_excecuted" value="false"/> <target name="run_main"> <sequential> <parallel> <antcall target="dashboard" /> <antcall target="remTraces" /> <param name="Run_excecuted" value="true"/> </parallel> </sequential> </target> I have set a property Run_excecuted in the build and have added the condition unless="Run_excecuted" in the required targets <target name=