zno2

maven-antrun-plugin

1)  依赖

 

2)默认的classpath 

http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html

  • maven.compile.classpath
  • maven.runtime.classpath
  • maven.test.classpath
  • maven.plugin.classpath

3)示例

<target name="slice2java">
    <mkdir dir="${project.basedir}\target\generated"/>
    <taskdef name="slice2java" classname="Slice2JavaTask" classpathref="maven.compile.classpath" />
    <slice2java outputdir="${project.basedir}\target\generated">
        <fileset dir="${project.basedir}\src\main\resources\slice" includes="*.ice"/>
    </slice2java>
</target>

 

posted on 2023-06-06 12:40  zno2  阅读(42)  评论(0编辑  收藏  举报

导航