1 Star 0 Fork 0

vans/Joeffice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.xml 4.18 KB
一键复制 编辑 原始数据 按行查看 历史
vans 提交于 2013-07-10 17:09 . company0710
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<project name="Joeffice" basedir=".">
<description>Builds the module suite Joeffice.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-init-replace-icon-exe">
<condition property="replaceIconExe" value="C:/Java/Utils/icons/ReplaceVistaIcon.exe">
<and>
<os family="windows" />
<available file="C:/Java/Utils/icons/ReplaceVistaIcon.exe" />
</and>
</condition>
</target>
<target name="build-launchers" depends="suite.build-launchers, -init-replace-icon-exe">
<!-- Replace the icon for the Windows launcher exe. -->
<antcall target="replace-windows-launcher-icon"/>
</target>
<!-- Windows-only target that replaces the icon for the launcher exe with our own icon. -->
<target name="replace-windows-launcher-icon" depends="-init-replace-icon-exe,-init" if="replaceIconExe" description="replace-windows-launchers">
<echo message="Replacing icon of Windows launcher executable."/>
<exec executable="${replaceIconExe}" resolveexecutable="true">
<arg file="build/launcher/bin/${app.name}.exe" />
<arg file="tools/${app.name}.ico"/>
</exec>
<exec executable="${replaceIconExe}" resolveexecutable="true">
<arg file="build/launcher/bin/${app.name}64.exe" />
<arg file="tools/${app.name}.ico"/>
</exec>
</target>
<!-- Override to change Mac application icon. -->
<target name="build-mac" depends="suite.build-mac" description="Build Mac OS X Application">
<echo message="Replacing Mac icon" />
<property name="nbdist-contents.dir" value="${dist.dir}/${app.name}.app/Contents"/>
<property name="nbdist-resources.dir" value="${nbdist-contents.dir}/Resources"/>
<!-- Replace the icns file. -->
<delete file="${nbdist-resources.dir}/${app.name}.icns"/>
<copy file="tools/${app.name}.icns" tofile="${nbdist-resources.dir}/${app.name}.icns" />
</target>
<!-- doesn't work (the installer file is then 130 kb) -->
<target name="replace-icon-installer" depends="-init-replace-icon-exe,-init" description="Set the ${app.name} icon to the installer.">
<echo message="Replacing icon of Windows installer executable."/>
<exec executable="${replaceIconExe}" resolveexecutable="true">
<arg value="${dist.dir}/${app.name}-windows.exe" />
<arg value="tools/${app.name}.ico"/>
</exec>
</target>
<target name="post-release" depends="-init" description="Post release">
<property name="joeffice.com.dir" location="c:\Java\japplis\joeffice\joeffice.com" />
<property name="joeffice.net.dir" location="c:\Java\japplis\joeffice\joeffice.net" />
<copy file="${dist.dir}/${app.name}-windows.exe" tofile="${joeffice.com.dir}/${app.name}.exe" failonerror="false" />
<copy file="${dist.dir}/${app.name}-linux.sh" tofile="${joeffice.com.dir}/${app.name}.sh" failonerror="false" />
<copy file="${dist.dir}/${app.name}-macosx.tgz" tofile="${joeffice.com.dir}/${app.name}.tgz" failonerror="false" />
<copy file="${dist.dir}/${app.name}.zip" tofile="${joeffice.net.dir}/${app.name}.zip" />
</target>
<target name="run-tool" description="Run a tool">
<mkdir dir="build/classes" />
<javac destdir="build/classes" srcdir="tools/src" debug="true">
<classpath location="h2/release/modules/ext/h2-1.3.170.jar" />
<classpath location="swingX/release/modules/ext/swingx-all-1.6.5.jar" />
<classpath>
<fileset dir="poi/release/modules/ext" includes="*.jar" />
</classpath>
</javac>
<!-- classes are CreateH2Database, CreatePresentationDirectories, JTableCellSelection, UpdateRowSet, PptxShapeNotDrawn, FilterJXList -->
<java classname="org.joeffice.tools.FilterJXList">
<classpath path="build/classes" />
<classpath location="h2/release/modules/ext/h2-1.3.170.jar" />
<classpath location="swingX/release/modules/ext/swingx-all-1.6.5.jar" />
<classpath>
<fileset dir="poi/release/modules/ext" includes="*.jar" />
</classpath>
<arg file="tools/tests/Test 3 - GDocs.pptx" />
</java>
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/vansew/joeffice.git
git@gitee.com:vansew/joeffice.git
vansew
joeffice
Joeffice
master

搜索帮助