build.xml

How to release and install two versions of the same android app using the same package on the same device

时光怂恿深爱的人放手 提交于 2019-12-07 17:50:51
问题 I have an android app with two different res folders (res-1, res-2) containing all layout specific and one shared package. Using ant, I can release and install on my device only one of the two versions of the app at a time. What I want is to release and install them both in the same time, in order to be able to see and test them both on my device. Any suggestions how to achieve this ? Thanks in advance. 回答1: It's impossible to install two apps with the same package name, the existing one will

ant build.xml windows white space in path

吃可爱长大的小学妹 提交于 2019-12-06 17:56:51
问题 I'm using Windows and I'm trying to get ANT to work. When I do an ant build from the command line, I get: C:\dev\Projects\springapp\${%ANT_HOME%}\lib not found. I look into the build.xml file and I find: appserver.home=${user.home}/apache-tomcat-6.0.14 (which I just copied and pasted straight from a tutorial) I changed it to: appserver.home="C:\Program Files\Apache Software Foundation\Tomcat 6.0" but now I get: C:\dev\Projects\springapp\"C:Program FilesApache Software FoundationTomcat 6.0"

Compile SASS with Compass in Ant build.xml

主宰稳场 提交于 2019-12-06 07:40:59
问题 Does anyone know how to use JRuby and Compass modules to compile SASS (*.scss) files within build.xml? I'm able to use the Sass::Exec module within sass standalone installation to compile from *.scss to *.css in the following manner: <!-- Compile SCSS files copied to target folder --> <property name="stylesheetFolder" location="myproject/stylesheet"/> <property name="inputFiles" value="${stylesheetFolder}/[^_]*.scss" /> <echo message="Compiling SCSS files from ${stylesheetFolder}..." />

Can we use pom.xml into ANT

大城市里の小女人 提交于 2019-12-06 03:18:03
问题 I know that, we can very well use ANT and Maven together to build the project.We can run ANT scripts through Maven's POM.xml. But my question is can we run pom.xml through ANT's build.xml ? i.e. can we create maven build from build.xml 回答1: Yes, using maven ant tasks. The page lists out multiple maven tasks which can be integrated into an ant build script, thus combining the features of both. To take an example, there is the mvn task, which as documented can do a full maven build from ant.

Tool for graphing dependencies in an Ant build file and its imports [closed]

此生再无相见时 提交于 2019-12-04 23:37:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . What tool can take an Ant build file as input and display a graph of all the target dependencies? It should consider imports as well. I tried vizant, but it does not read imported files. 回答1: Grand might be more complete than VizAnt. See this blog post as an example: 回答2: yworks Ant Explorer is (was) great,

ant build.xml windows white space in path

心不动则不痛 提交于 2019-12-04 23:31:00
I'm using Windows and I'm trying to get ANT to work. When I do an ant build from the command line, I get: C:\dev\Projects\springapp\${%ANT_HOME%}\lib not found. I look into the build.xml file and I find: appserver.home=${user.home}/apache-tomcat-6.0.14 (which I just copied and pasted straight from a tutorial) I changed it to: appserver.home="C:\Program Files\Apache Software Foundation\Tomcat 6.0" but now I get: C:\dev\Projects\springapp\"C:Program FilesApache Software FoundationTomcat 6.0"\lib not found. It seems like the white space in Program Files and Tomcat 6.0 are causing the build to

Compile SASS with Compass in Ant build.xml

假如想象 提交于 2019-12-04 14:13:42
Does anyone know how to use JRuby and Compass modules to compile SASS (*.scss) files within build.xml? I'm able to use the Sass::Exec module within sass standalone installation to compile from *.scss to *.css in the following manner: <!-- Compile SCSS files copied to target folder --> <property name="stylesheetFolder" location="myproject/stylesheet"/> <property name="inputFiles" value="${stylesheetFolder}/[^_]*.scss" /> <echo message="Compiling SCSS files from ${stylesheetFolder}..." /> <script language="ruby" classpath="${env.EP_LIB}/jruby/complete/${jruby-complete.build.jar}"> <![CDATA[

java.lang.ClassNotFoundException when running java -jar

女生的网名这么多〃 提交于 2019-12-04 13:49:01
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: java -jar MyClass.jar , I get the error: Exception in thread "main" **java.lang.NoClassDefFoundError**:

How can I include a folder into the dist JAR as part of the build process using Netbeans?

浪子不回头ぞ 提交于 2019-12-04 04:02:33
问题 I'm using Netbeans 6.9 , and I have looked into editing the build.xml file so that I can include directories and files in the jar file that results from building the project. So my question is How do I modify the build.xml file to put other folders in the jar? I have the following directory structure for my project ProjectDir/ /images/ /src/com/... /lib/ and so on.. And I want the jar file built by the ant build script to look like project.jar /com /lib --this should include the jar files

Target overriding in Ant

◇◆丶佛笑我妖孽 提交于 2019-12-03 10:16:57
Is there a possibility to literally override a target or emulate this somehow? So, when I call <target perform-after="release"> <do-something /> </target> It will act like this: <target name="release"> <antcall target="release" /> <!-- call previous version, not recursion --> <do-something /> </target> I think it has a meaning, I'll describe on Android example: We have an .xml templates for every build.xml in SDK folder ( {$SDK}/tools/ant/*.xml ), these files are included in every generated build.xml for each project. There are only -pre-compile , -pre-build and -post-compile targets that