ant

Updating xml elements using ant

ⅰ亾dé卋堺 提交于 2019-12-25 03:16:24
问题 I have an XSL file, which acts as a configuration file for my application. In fact it is an XML file, which has the elements wrapped around it. This file is called Config.xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.example.org/Config"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" standalone="yes" /> <xsl:template match="/"> <Config> <Test>somevalue</Test> <Test1

java.exe is not recognized as an internal or external command

 ̄綄美尐妖づ 提交于 2019-12-25 02:42:28
问题 I have already read some posts but I cant solve my problem yet. I am working on a remote desktop and windows server 2008. In the shared disk E: I put some batch file. This batch files call a new batch file from server which runs java script. And now I am taking the this message. java.exe is not recognized as an internal or external command, operable program or batch file . I try to set the environment like : First setup the JRE7 to disk E Second create new user variable which name is JAVA

Adding Attribute to JAR's Manifest Via ANT TASK

落爺英雄遲暮 提交于 2019-12-25 02:39:10
问题 all i am stuck with an issue. I have 14 third party jars.I am signing those jars with comodo code sign certificate successfully via ant task. Now i want to accomplish that whenever i sign those jars i need to add some attributes to jar's manifest file , How can i do that ? I found some manifest task inside jar task but did not find anything while signing. all those jars are third party jars and already packed so i think do not need to compile and pack them from the source. Thanks 回答1: You'd

ClassNotFoundException when running ant junit

☆樱花仙子☆ 提交于 2019-12-25 02:26:55
问题 I'm running into this ClassNotFoundException issue when running Junit task below, but this is non eclipse based project running an ant build from command prompt, the build file is pasted below. The exception is below. I have done similar to that of setup here it does not work though, any pointers will be appreciated. Thanks. Class org.apache.tools.ant.util.StringUtils loaded from parent loader (parentFirst) [junit] Testsuite: SampleTest Class org.apache.tools.ant.util.FileUtils loaded from

Custom Ant Types with reference result in empty class

倾然丶 夕夏残阳落幕 提交于 2019-12-25 02:24:24
问题 I am using Apache Ant as a tool for tedious data collection and calculation tasks I have to do over and over again. I have defined some custom Ant Tasks and they work really well. However, now I want to create new data-types using the <typedef> tag. I want to define some data in the beginning of my build.xml which I can reference to later, much like the following example from a regular build file from one of my Java projects: <path id="classpath.build"> <fileset dir="${dir.lib}"> <include

IBM Worklight 6.1.0 - Unable to deploy Worklight adapters using ANT tasks

ε祈祈猫儿з 提交于 2019-12-25 02:11:13
问题 I've just updated my Worklight Studio from 6.0.0.1 to 6.1.0 and with the update I've gone ahead and updated the worklight-build-tools.jar on my path. It's worth mentioning that my team has already updated the project we're working on to 6.1.0. Following the update, I ran the ANT tasks to build and deploy all project artifacts. The result, I wasn't able to deploy the adapters to the local development server. I unzipped the worklight-build-tools.jar and poked around for a while and found the

grails ant task, set different envrionment

◇◆丶佛笑我妖孽 提交于 2019-12-25 01:45:39
问题 Trying to create a grails ant task that has other environments besides prod for the war task. i've tried <target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application"> <grails script="War" args="grails.env=${env} ${war.filename}"/> </target> and <target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application"> <grails script="War" args="-Dgrails.env=${env} ${war.filename}"/> </target> Neither of these two work and always

Using Apache ANT to programmatically execute sql script with plpgsql function fails

时光怂恿深爱的人放手 提交于 2019-12-25 01:44:59
问题 I need to execute a SQL script programmatically. The script defines a function which upgrades the postgreSQL database depending on its version. It looks like this: create or replace function update_auto_increment(version varchar(20)) returns integer as $$ declare v integer; begin v := cast(version as int); if v < 590 then -- some upgrade code here v := 590; raise notice 'Updated base to version %', v; end if; return v; end; $$ language plpgsql; select update_auto_increment(value) from info

Android test project fails to build under Ant, OK in Eclipse

你说的曾经没有我的故事 提交于 2019-12-25 01:44:59
问题 I am trying to set up a CI build server for an Android app project and its JUnit test project. I've generated the appropriate build.xml files for both app and test projects. Both projects build and execute fine under Eclipse. However, when I try to do ant debug on the test project without having first built both projects with Eclipse, I get several [javac] errors saying error: cannot find symbol which refer to classes in the app project. I think this is a difference between the classpath that

MobileFirst ant scripts for build with minification

被刻印的时光 ゝ 提交于 2019-12-25 01:40:58
问题 I have been building an application and have been using MobileFirst minification activated in the Studio. Now i am developing ant scripts and can't seem to find a property to activate minification during the ant build. I have my build-settings.xml properly configured but my ant builds don't generate minified code. What I am missing? 回答1: You can use the attributes concatenate ="true" and minifyResources ="true" in the builder element. 来源: https://stackoverflow.com/questions/33286200