ant

how to replace a backslash in some lines of a text in Ant

一个人想着一个人 提交于 2019-12-11 05:39:37
问题 Using <replaceregexp byline="true" flags="g" file="${someFIle}" match = "[\\]" replace = "/"/> I can easily replace all the \ with /. But Suppose the text is: Other A\B\C Some C\D\E Other ... Other ... ... How to replace the "\" with "/" in the second line which has prefix "Some", but not other lines: Other A\B\C Some C/D/E ... 回答1: replaceregexp does not have options to skip lines. 回答2: Your problem cannot be merely solved by a single regex. You need to do something more complex. 1) Read

How can I tell which filesystem Worklight's <app-deployer> is referring to?

て烟熏妆下的殇ゞ 提交于 2019-12-11 04:55:30
问题 We are using Worklight's automated ANT task to deploy a Worklight application. Unfortunately, it's currently failing with this error message: BUILD FAILED /deployment/jenkins/jobs/UAT-uat2-Deploy/workspace/co.uk.homebase.strategic-app/Homebase/ciBuild/buildAndDeployAnt.xml:171: The following error occurred while executing this line: /deployment/jenkins/jobs/UAT-uat2-Deploy/workspace/co.uk.homebase.strategic-app/Homebase/ciBuild/buildAndDeployAnt.xml:186: app-deployer failed:SEVERE:Bad Request

Ant build failed for mysql

孤街浪徒 提交于 2019-12-11 04:38:58
问题 When I run Ant build using mysql the following error occur Cannot run program "mysql" (in directory "D:\Projects\OBSWorkspace\schoolforms\db"): CreateProcess error=2, The system cannot find the file specified when i run mysql in local cmd the following message occur ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) how to run ant for generating and creating database from the script. 回答1: First of all you need to try to connect with mysql via cmd line, for

Jmeter 3.0 can't generate the ANT HTML report

孤街醉人 提交于 2019-12-11 04:32:49
问题 I am on the verge of pulling all my hair out, someone please help me.. I am using JMeter 3.0 and am trying to generate the dashboard report from my jtl files, but I get the error - result.jtl' does not contain the field names header, ensure the jmeter.save.saveservice.* properties are the same as when the CSV file was created or the file may be read incorrectly my user.properites file contains - jmeter.save.saveservice.output_format=csv jmeter.save.saveservice.bytes=true jmeter.save

Ant task to filter JARs for zip file and manifest

走远了吗. 提交于 2019-12-11 04:19:54
问题 I have an Ant file where I am creating a zip file and a manifest for several JAR files. Both the zip and the manifest reference the same libraries, but in slightly different ways. If possible I would like to combine the references to the files instead of explicitly writing them twice and hoping the references in both tasks sync up. Below is an example of what I am currently doing. <target name="zip" depends="default"> <zip destfile="${dist.dir}/${project.name}_v${project.version}.zip">

How to add a .jar file to native bundle?

☆樱花仙子☆ 提交于 2019-12-11 04:17:55
问题 Hi i'm creating an application in javafx 2.2 and while compiling a native bundle (EXE) I can see that in the Runtime I miss a library I need. MyApp\runtime\jre\lib\ext\sunjce_provider.jar I try adding it like this in my build.xml <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}" nativebundles="exe" outdir="${basedir}/${dist.dir}" outfile="${application.title}"> <fx:application name="${application.title}" mainClass="${javafx.main.class}"/> <fx:resources> ... <fx:fileset dir=

How to create nested element for ant task?

时光怂恿深爱的人放手 提交于 2019-12-11 03:59:53
问题 Is it possible to create the nested element for any ant task. For e.g. <copy todir="../backup/dir"> <fileset dir="src_dir"/> <filterset> <filter token="TITLE" value="Foo Bar"/> </filterset> </copy> Here for the task copy we are having nested element as filterset . Now, i would like to create my own nested element encryptfilterset for the task copy . <copy todir="../backup/dir"> <fileset dir="src_dir"/> <encryptfilterset> <filter token="TITLE" value="Foo Bar"/> </encryptfilterset> </copy> How

Ant: fileset “dir” attribute with a runtime expanded full path

和自甴很熟 提交于 2019-12-11 03:59:48
问题 Let's say I have a file-system that looks a little something like this: C:\stuff\build.xml C:\stuff\myfolder\library1.jar C:\stuff\myfolder\library2.jar Inside build.xml, I want to define a path that looks like this: <path id="some.id"> <fileset dir="myfolder"> <include name="**/*.jar"/> </fileset> </path> Normally that works fine. However, I am calling my own custom Ant Task that will inherit any references (including the path "some.id") and that custom Ant Task will call a build.xml that

build.xml expects tools.jar at a different location

天涯浪子 提交于 2019-12-11 03:55:01
问题 While using Ant to build my application, the build is successful but at the beginning it says Unable to locate tools.jar. Expected to find it in D:\Java\jre6\lib\tools.jar However my tools.jar is at the location D:\Java\jdk6u30\lib I understand that tools.jar contains classes needed by jdk and should only be present at jdk lib and nowhere else. I hope I am correct on this. My question is that why does build.xml expects it at a different location? I have my JAVA_HOME set to D:\Java\jdk6u30 .

Ant4Eclipse Examples

百般思念 提交于 2019-12-11 03:52:43
问题 I'm currently using standard Ant and I want to move to Ant4Eclipse (http://www.ant4eclipse.org/) to take advantage of the classpath information that my eclipse project already has to build it and run unit tests. Problem i'm finding is I can't find a good example of using ant4eclipse to build a simple project. I've been getting mixed results going through searches and looking at the ant4eclipse documentation. Anyone have a good reference ant file using ant4eclipse to build an Eclipse java