我遇到了subant问题而且没有任何想法.有人可以帮忙吗?使用Ant替换其他字符串(即"Foo"和"1.2"的Productname和Version)我使用了这样的东西:
<copy todir="${Foo_Home}\cm_builds\Deployment\Database\Production.win\">
<fileset dir="${Foo_Home}\Deployment\Database\Production.win\"
includes="**/*.sql,**/*.cmd"/>
<filterset>
<filter token="PRODUCTNAME" value="Foo"/>
<filter token="VERSION" value="1.2"/>
</filterset>
</copy>
Run Code Online (Sandbox Code Playgroud)
我们可以通过subant做同样的事情吗?由于copy和replacetoken等不受subant支持.但我们需要完全不足......
像这样的东西:
<subant target="build" genericantfile="build.xml">
<dirset dir="${Foo_Home}\cm_builds\Deployment\Database\Production.win\"
includes ="**/*.sql">
</subant>
Run Code Online (Sandbox Code Playgroud)
这是使用subant的正确方法吗?(假设我们有几个像这样的目标)
http://ant.apache.org/manual/Tasks/subant.html寻求帮助=)
我怀疑我以错误的方式使用subant.也许没有必要尝试使subant运行与ant相同的任务?也许我应该在必需的目录中制作subant run ant并且不要为ant更改任何内容?
ant ×1