ant

Ant not creating tar files

﹥>﹥吖頭↗ 提交于 2020-01-06 08:48:12
问题 I have a little ant script which should create 3 tar files. <?xml version="1.0" encoding="UTF-8"?> <project basedir="." > <property name="dcc-shell.dir" value="${basedir}"/> <property name="dcc-mdp.dir" value="${dcc-shell.dir}/eq-mo-drop-copy-converter-mdp"/> <property name="mdp-code.dir" value="${dcc-mdp.dir}/src/main/*"/> <property name="dcc-srv.dir" value="${dcc-shell.dir}/eq-mo-drop-copy-converter-server"/> <property name="srv-code.dir" value="${dcc-srv.dir}/src/main/*"/> <property name=

Is it possible to refer to a classpath defined in one build file from another build file?

不羁岁月 提交于 2020-01-06 07:55:17
问题 In project A's build file, there is a <path> ; In project B's build file, I want to execute a tool class in project A by <java> task. The <java> task need to use that path in its "classpathref" property. The <path> in project A's build file is quite complicated so that I don't want to copy it to project B's build file. So is it possible to refer to a classpath defined in one build file from another build file? 回答1: Using the import or include ANT tasks is the way to do this.... however, these

Create project from maven archetype via Apache Ivy

馋奶兔 提交于 2020-01-06 04:57:09
问题 If you want to create project with a Maven archetype you type mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... \ -DarchetypeVersion=... -DgroupId=... -DartifactId=... \ -Dversion=... How this line would change if you are using Ivy? 回答1: ivy is not a drop in replacement for maven, it's a dependency manager for ant. If you want to use archetypes ivy won't be of any help 回答2: Since Ant + Ivy is all about configuration and flexibility, since this combo doesn't rely on

Accessing the timestamp after PDE build

天涯浪子 提交于 2020-01-06 04:23:10
问题 Am using ant to build my RCP application. The PDE headless build works well. However for some custom bundling of my artifacts, i need to access the timestamp that PDE uses while creating jars of my plugins and features. Ex: com.test.app.1.0.0.201404091703.jar I need to get the value 201404091703 from the PDE once the build is successful. Is this possible? I tried with forceContextQualifier from the build.properties, but the problem with this is, everytime before the build starts i need to

compare xml files with maven or ant

牧云@^-^@ 提交于 2020-01-06 04:16:25
问题 I have a requirement to compare 2 directories of wsdl and xsd files using maven or ant and to generate a report (preferably html) of the differences. Any recommendations? 回答1: I would write your own Plugin. Start with this on the command line: mvn archetype:generate -DgroupId=mygroup -DartifactId=myartifact Choose maven plugin from the list. A plugin project will be generated. The plugin code will have an execute() method, just implement that. It will be far faster and cleaner to implement

Hibernate Ant Tools

那年仲夏 提交于 2020-01-06 03:40:26
问题 I have used hibernate ant tool to generate hibernate pojo classes with annotations. What is the POJO class generation strategy from existing tables using ANT SCRIPT? I figured out the answer and I'm posting it. 回答1: If table column is having not null constraint, then a property related to that column in generated class will be of primitive type. If table column is not having not null constraint, then a property related to that column in generated class will be of java.lang.X type. (X == any

How can I build my jar file so that users who use the library will be able to see the javadoc in Eclipse

冷暖自知 提交于 2020-01-06 03:26:32
问题 I'm working on a small library for our in-company use, and have been heavily documenting it. Now I'm building my jar with the following code: <project name="commonutils" default="compile" basedir="."> <property name="src" location="src" /> <property name="build" location="buildDirecotry" /> <target name="compile"> <delete file="${ant.project.name}.jar" /> <mkdir dir="${build}"/> <javac srcdir="${src}" destdir="${build}" debug="on" target="1.5"> <classpath> <pathelement location="lib/build

Debug TestNg java code in eclipse that uses Ant

别来无恙 提交于 2020-01-06 03:15:24
问题 I am trying to debug a project in Eclipse(Mars) that does test automation using TestNg and Apache Ant for build. With the available solutions, I am able to debug ant build.xml file, but breakpoints inside java code are not hitting. Can anyone please help me with this on how to debug java source files, especially the test cases in my case in eclipse? Thanks. 回答1: I have similar problem, may be it is TestNG bug. But all breakpoints are halting execution if I'm starting not single test (with

Specify git commands in Jenkins Git plugin

微笑、不失礼 提交于 2020-01-06 02:15:12
问题 I have written following ant target to fetch code from a GitHub repository. <target name="fetch" description="Fetching the Source Code"> <echo message="-------------------------------------------------------------"/> <echo message="Fetching Latest from ${build.git.organization}/${build.git.repository} ${build.git.branch}"/> <echo message="-------------------------------------------------------------"/> <exec executable="git" dir="${build.source.location}\${build.git.repository}" failonerror=

Ant: Convert comma-delimited list of relative paths to path

拈花ヽ惹草 提交于 2020-01-05 12:30:38
问题 I have a comma-delimited list of directories: foo,bar,baz,qux I want to convert it to an Ant path containing (something like) the following: ${basedir}/build/foo/classes ${basedir}/build/bar/classes ${basedir}/build/baz/classes ${basedir}/build/qux/classes It seems like there should be a way to do this with <pathconvert> , but it's not obvious to me what it would be. Suggestions? 回答1: You might be able to use a dirset to hold your list of directories, then feed that into pathconvert.