📄 plugin-ant-usage.html
字号:
<!-- Defines the project classpath --> <!-- ==================================================================== --> <path id="project.classpath" > <!-- our compilation directory --> <pathelement location="${dir.compile}" /> <!-- needed 3rd party libraries --> <fileset dir="${dir.lib}" > <include name="**/*.jar" /> </fileset> </path> <!-- ==================================================================== --> <!-- Compiles the project sources --> <!-- ==================================================================== --> <target name="compile" depends="init"> <javac destdir="${dir.compile}" fork="true"> <classpath refid="project.classpath" /> <src path="${dir.src.java}" /> </javac> </target> <!-- ==================================================================== --> <!-- Formats all source files --> <!-- ==================================================================== --> <target name="format" depends="compile"> <!-- Invokes Jalopy as follows: - All formatted files will have unix fileformat (\n) - Load your code convention from the given url - Override the convention to use the file history feature - Override the convention to use alder32 checksums of files for history testing - Override the convention to use loglevel "info" - Override the convention to use 2 threads - The import optimization feature will work (if enabled in the active convention), because a classpath reference is specified Don't forget to setup an include pattern as Jalopy truly expects valid Java source files as input! --> <jalopy fileformat="unix" convention="http://www.foo.com/myConvention.xml" history="file" historymethod="adler32" loglevel="info" threads="2" classpathref="project.classpath"> <fileset dir="${dir.src.java}"> <include name="**/*.java" /> </fileset> </jalopy> </target></project></pre></td></tr></table></div><p></p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plugin-ant-config.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="plugin-ant.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="plugin-ant-license.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">5.2. Configuration </td><td width="20%" align="center"><a accesskey="h" href="manual.html">Home</a></td><td width="40%" align="right" valign="top"> 5.4. License</td></tr></table></div></td></tr></table></td></tr><tr><td bgcolor="#eeeecc" height="17" style="font-size:9px;padding-left:5px"><a href="#toppage">to top</a></td></tr><tr><td height="30"><br></td></tr><tr><td height="3"></td></tr><tr><td bgcolor="#336699" height="1"></td></tr><tr><td height="1"></td></tr><tr><td bgcolor="#336699" height="16"></td></tr><tr><td bgcolor="#ff9966" height="4"></td></tr><tr><td class="footer" align="center" height="15" valign="middle"> Copyright © 2001-2004, <a class="footer" href="./contact.html">Marco Hunsicker</a>. All rights reserved. Hosted by <a href="http://sourceforge.net">SourceForge.net</a></td></tr></tbody></table><img src="http://sourceforge.net/sflogo.php?group_id=45216&type=1" width="1" height="1" border="0" hspace="0" vspace="0" alt=""></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -