Ant4Eclipse示例
我目前正在使用标准Ant,我想转到Ant4Eclipse(http://www.ant4eclipse.org/)为了利用eclipse项目已经拥有的类路径信息,我必须构建它并运行单元测试 我发现的问题是,我找不到一个使用ant4eclipse构建简单项目的好例子。通过搜索和查看ant4eclipse文档,我得到的结果好坏参半。有没有人有一个好的参考ant文件,可以使用ant4eclipse来构建EclipseJava项目,或者查看一个站点Ant4Eclipse示例,eclipse,ant,continuous-integration,Eclipse,Ant,Continuous Integration,我目前正在使用标准Ant,我想转到Ant4Eclipse(http://www.ant4eclipse.org/)为了利用eclipse项目已经拥有的类路径信息,我必须构建它并运行单元测试 我发现的问题是,我找不到一个使用ant4eclipse构建简单项目的好例子。通过搜索和查看ant4eclipse文档,我得到的结果好坏参半。有没有人有一个好的参考ant文件,可以使用ant4eclipse来构建EclipseJava项目,或者查看一个站点 谢谢 所以我想我只是误解了一些任务的命名。我导入了a4
谢谢 所以我想我只是误解了一些任务的命名。我导入了a4e-jdt-macros.xml(随ant4eclipse提供),并使用了“buildJdtProject”宏—非常易于使用 下面是一个例子:
<project name="ant-in-eclipse" basedir="."
xmlns:ant4eclipse="antlib:org.ant4eclipse"
xmlns:antcontrib="antlib:net.sf.antcontrib">
<import file="a4e-jdt-macros.xml"/>
<target name="compileAndJar">
<buildJdtProject workspacedirectory="${workspace.dir}"
projectname="${proj.name}">
<finish>
<jar destfile="${jar.dir}/myjar.jar">
<ant4eclipse:jdtProjectFileSet
workspacedirectory="${workspace.dir}"
projectname="${buildJdtProject.project.name}"/>
</jar>
</finish>
</buildJdtProject>
</target>
</project>