ant

Removing Date Comment from Apache's Ant PropertyFile Task

自作多情 提交于 2019-12-19 17:38:59
问题 I'm using the propertyfile task shown below in my build script: <target name="build-brand" depends="-init" description="Adds version information to branding files."> <propertyfile file="${basedir}/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties"> <entry key="currentVersion" value="${app.windowtitle} ${app.version}" /> </propertyfile> </target> The task works as expected, except that each time I build the project, the date comment line of the Bundle.properties file is

Using mapper & fileset to copy files into a different subdirectory?

拥有回忆 提交于 2019-12-19 16:35:12
问题 I want to create an Ant target that copies files in a directory to a destination directory with the same folder structure, plus one more subfolder appended. For example, the source is: a/b/c/foo.pdf d/e/f/bar.pdf I want the destination to be: a/b/c/x/foo.pdf d/e/f/x/foo.pdf Here is my target so far, but it doesn't appear to be doing anything: <copy todir="${dest.dir}"> <fileset dir="${src.dir}" casesensitive="yes"> <include name="**${file.separator}foo.pdf" /> </fileset> <mapper type="glob"

what's the difference between AntCall and Ant tasks?

不羁的心 提交于 2019-12-19 16:10:11
问题 Is there any substantial difference between the AntCall task (described here) and the Ant task (described here), except for the fact that Ant task runs on a different build file? 回答1: It really depends on what you mean by "substantial difference". The difference would be that one calls the other, so basically is the same thing but used in different contexts. Here is a snippet from defaults.properties which defines the standard Ant tasks: ant=org.apache.tools.ant.taskdefs.Ant antcall=org

svnant does not support svn version 1.7. what to do?

陌路散爱 提交于 2019-12-19 13:40:53
问题 I'm using tortoise svn, and recently I updated to version 1.7. Still, in our build system (ant script) we use svnant lib (to get current revision number, we use it as version number). So can no longer build the project as svnant does not support 1.7 version of svn. How can I solve this problem? Thank you in advance! 回答1: You can use the command line version of svn. Download and Install it on your machine Include it in your Path (so that you can execute svn from the command line) Change the

Ant build scripts totally hangs, with no messages in console

半世苍凉 提交于 2019-12-19 12:52:15
问题 I have build.xml for my project, but even this small piece of code <target name="init"> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> It doesn't run Console is empty but process is active. I still can terminate it over STOP button In same time I cannot debug it as well, same stuff active process no output in console and I can wait forever! Any ideas? JDK 1.6.0_14 Eclipse 3.5.1 Edited : Thank to Peter's Loron question I checked

Ant build scripts totally hangs, with no messages in console

风格不统一 提交于 2019-12-19 12:52:05
问题 I have build.xml for my project, but even this small piece of code <target name="init"> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> It doesn't run Console is empty but process is active. I still can terminate it over STOP button In same time I cannot debug it as well, same stuff active process no output in console and I can wait forever! Any ideas? JDK 1.6.0_14 Eclipse 3.5.1 Edited : Thank to Peter's Loron question I checked

Java: How to integrate ProGuard in Jar Project using custom Ant build.xml

孤街浪徒 提交于 2019-12-19 11:53:30
问题 I have simple java project which refers to two (2) library jar files. Want to integrate ProGuard. Here's my current build.xml: <?xml version="1.0" ?> <project name="Samples" default="dist" basedir="."> <!-- generate JAR START --> <description>Samples Library</description> <!-- Setting global properties for this build --> <property name="src" location="src" /> <property name="bin" location="bin" /> <target name="dist"> <jar destfile="Samples.jar" basedir="bin/"> <!-- Use ** to include the

IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task

烂漫一生 提交于 2019-12-19 11:26:27
问题 I had an Ant build file working fine on Worklight v5.0.6. On porting to Worklight v6.0 I found out that there's a new mandatory attribute, worklightserverhost , for the app-builder task. <app-builder applicationFolder="path/to/proj" environments="mobilewebapp,android,iphone" nativeProjectPrefix="myproj" worklightserverhost="?Here?" outputFolder="where/to/put/it"/> I can find no documentation of the value to put here or its significance; my guess is that it is supposed to be the value that was

Calling depends targets from parent build.xml inside includes xml

余生长醉 提交于 2019-12-19 11:24:17
问题 Is it possible for xml files that are part of 'includes' inside build.xml to have depends on targets from that build.xml (backwards dependency)? Or do I need to create a chain of only forward dependencies, and having "depends" on includedFile.target down? If this is possible, how do I call these parent targets? I am trying to extract several targets outside of a very long build.xml file, in a situation like this: build.xml defines a very common target, buildMe used throughout the build.xml

Rename Vs Move Ant task

元气小坏坏 提交于 2019-12-19 10:25:33
问题 Actually i am using <move> cmd for renaming one folder instead of <rename> cmd. but in my case i am moving here 48746 files, so takes 1 approx hour. pls tell me ant appropriate way to rename that folder in optimal way. Thanks in advance. <target name="rename_folder_jet" depends="Upload_on_ftp"> <move todir="${build.dir}_jet_${ver_number}"> <fileset dir="${build.dir}"> <include name="**/*.*"/> </fileset> </move> </target> 回答1: Try to move/rename the directory only, rather than all its contents