• 报告合成工程打包

      • build.xml ```xml <?xml version=”1.0”?>

    1. - **fileNames.properties**

    projectName=desk-export tarDesDir=D:/home/wasadmin env=.dev myFiles=1

    1. - **Smartbi插件扩展包打包(build.xml)**
    2. ```xml
    3. <?xml version="1.0" encoding="UTF-8"?>
    4. <project name="msas-ext-smartbi" default="dist">
    5. <property name="ext_name" value="msas-ext-smartbi"/>
    6. <target name="clean">
    7. <echo>==============</echo>
    8. <echo>${ant.project.name}: clean</echo>
    9. <echo>==============</echo>
    10. <delete dir="${basedir}/dist"/>
    11. </target>
    12. <target name="init">
    13. <echo>==============</echo>
    14. <echo>${ant.project.name}: init</echo>
    15. <echo>==============</echo>
    16. <tstamp><format property="today" pattern="yyyy-MM-dd HH:mm:ss"/></tstamp>
    17. <mkdir dir="${basedir}/dist"/>
    18. <mkdir dir="${basedir}/lib-compile"/>
    19. <mkdir dir="${basedir}/src/web/META-INF/lib"/>
    20. <mkdir dir="${basedir}/src/web/META-INF/classes"/>
    21. <property name="Application.Tstamp" value="${basedir}/dist/Application.Tstamp"/>
    22. <touch file="${Application.Tstamp}" datetime="${today}" pattern="yyyy-MM-dd HH:mm:ss"/>
    23. </target>
    24. <target name="compile">
    25. <echo>==============</echo>
    26. <echo>${ant.project.name}: compile</echo>
    27. <echo>==============</echo>
    28. <javac destdir="${basedir}/src/web/META-INF/classes" srcdir="${basedir}/src/java" debug="true" includeantruntime="false">
    29. <classpath>
    30. <fileset dir="${basedir}/lib-compile" />
    31. <fileset dir="${basedir}/src/web/META-INF/lib"/>
    32. </classpath>
    33. </javac>
    34. </target>
    35. <target name="jar">
    36. <echo file="${basedir}/src/web/META-INF/version.txt" message="${today}" />
    37. <jar destfile="${basedir}/dist/${ext_name}.ext" duplicate="preserve">
    38. <fileset dir="${basedir}/src/web">
    39. <exclude name="**/.cvsignore" />
    40. </fileset>
    41. </jar>
    42. <delete file="${basedir}/src/web/META-INF/version.txt"/>
    43. </target>
    44. <target name="dist" depends="init">
    45. <echo>==============</echo>
    46. <echo>${ant.project.name}: dist</echo>
    47. <echo>==============</echo>
    48. <antcall target="compile"/>
    49. <antcall target="jar"/>
    50. </target>
    51. </project>
    • 报表推荐工程打包(build.xml) ```xml <?xml version=”1.0”?>

    ```