|
220 | 220 | <available file="${dir.src}/libuiohook" property="project.check.libuiohook.download" />
|
221 | 221 | <available file="${dir.src}/libuiohook/configure" property="project.check.libuiohook.bootstrap" />
|
222 | 222 | <available file="${dir.bin}/libuiohook/Makefile" property="project.check.libuiohook.configure" />
|
223 |
| - |
| 223 | + <available file="${dir.jar}/${ant.project.name}.jar" property="project.check.jar" /> |
| 224 | + <available file="${dir.doc}/" property="project.check.javadoc" /> |
224 | 225 |
|
225 | 226 | <!-- Set the operating system name used for organizing native libraries -->
|
226 | 227 | <condition property="ant.build.native.os" value="freebsd">
|
|
314 | 315 | <property name="ant.build.native.executable" value="lib${ant.project.name}.so" />
|
315 | 316 |
|
316 | 317 |
|
317 |
| - <!-- Create property file for the descovered values --> |
| 318 | + <!-- Create property file for the descovered values |
318 | 319 | <propertyfile file="ant.build.properties" comment="auto-generated by ant configure">
|
319 | 320 | <entry key="ant.build.debug" value="${ant.build.debug}" />
|
320 | 321 | <entry key="ant.build.javac.args" value="${ant.build.javac.args}" />
|
321 |
| - </propertyfile> |
| 322 | + </propertyfile --> |
322 | 323 | </target>
|
323 | 324 |
|
324 | 325 |
|
|
530 | 531 | </target>
|
531 | 532 |
|
532 | 533 |
|
533 |
| - <target name="jar" description="Creates the jar library."> |
| 534 | + <target name="jar" unless="project.check.jar" description="Creates the jar library."> |
534 | 535 | <echo>Copying libs...</echo>
|
535 | 536 | <mkdir dir="${dir.bin}/class/java/org/jnativehook/lib" />
|
536 | 537 | <copy overwrite="true" todir="${dir.bin}/class/java/org/jnativehook/lib">
|
|
566 | 567 | </target>
|
567 | 568 |
|
568 | 569 |
|
569 |
| - <target name="javadoc" description="Generates javadoc api documentation."> |
| 570 | + <target name="javadoc" unless="project.check.javadoc" description="Generates javadoc api documentation."> |
570 | 571 | <echo level="info">Generating API Documenation...</echo>
|
571 | 572 | <mkdir dir="${dir.doc}" />
|
572 | 573 |
|
|
589 | 590 | </target>
|
590 | 591 |
|
591 | 592 |
|
592 |
| - <target name="package" depends="jar,javadoc" description="Creates zip files for distribution."> |
| 593 | + <target name="package" depends="init,jar,javadoc" description="Creates zip files for distribution."> |
593 | 594 | <!-- Copy Files To Dist Locations -->
|
594 | 595 | <echo>Creating Distribution Archive...</echo>
|
595 | 596 | <mkdir dir="${dir.dist}" />
|
596 | 597 |
|
597 |
| - <zip destfile="${dir.dist}/${ant.project.name}-${ant.project.version}.zip" duplicate="add" level="9"> |
598 |
| - <zipfileset dir="${dir.jar}" prefix="${ant.project.name}/jar"> |
599 |
| - <include name="*.jar" /> |
| 598 | + |
| 599 | + <zip destfile="${dir.dist}/${ant.project.name}-${ant.project.version}.zip" level="9"> |
| 600 | + <zipfileset dir="${dir.doc}" prefix="${ant.project.name}/doc"> |
| 601 | + <include name="**/*" /> |
600 | 602 | </zipfileset>
|
601 | 603 |
|
602 |
| - <zipfileset dir="${basedir}" prefix="${ant.project.name}"> |
603 |
| - <include name="license*.txt" /> |
604 |
| - <include name="readme.txt" /> |
| 604 | + <zipfileset dir="${dir.jar}" prefix="${ant.project.name}/jar"> |
| 605 | + <include name="*.jar" /> |
605 | 606 | </zipfileset>
|
606 |
| - </zip> |
607 | 607 |
|
608 |
| - <zip destfile="${dir.dist}/${ant.project.name}-doc-${ant.project.version}.zip" duplicate="add" level="9"> |
609 |
| - <zipfileset dir="${dir.doc}" prefix="${ant.project.name}/doc"> |
610 |
| - <exclude name="**/.*" /> |
| 608 | + <zipfileset dir="${dir.src}" prefix="${ant.project.name}/src"> |
| 609 | + <include name="**/*" /> |
| 610 | + <exclude name="JNativeHook.iml" /> |
| 611 | + <exclude name="jni/include/org_jnativehook_GlobalScreen.h" /> |
| 612 | + <exclude name="jnitasks/" /> |
| 613 | + <exclude name="libuiohook/" /> |
611 | 614 | </zipfileset>
|
612 |
| - </zip> |
613 | 615 |
|
614 |
| - <zip destfile="${dir.dist}/${ant.project.name}-src-${ant.project.version}.zip" duplicate="add" level="9"> |
615 | 616 | <zipfileset dir="${basedir}" prefix="${ant.project.name}">
|
616 |
| - <exclude name="**/.*" /> |
617 |
| - |
618 |
| - <include name="*.txt" /> |
619 | 617 | <include name="build.*" />
|
620 |
| - <exclude name="build.properties*" /> |
621 |
| - </zipfileset> |
622 |
| - |
623 |
| - <zipfileset dir="${dir.src}" prefix="${ant.project.name}/src"> |
624 |
| - <exclude name="**/.*" /> |
625 |
| - |
626 |
| - <exclude name="native/jni/org_jnativehook_GlobalScreen.h" /> |
| 618 | + <include name="*.md" /> |
627 | 619 | </zipfileset>
|
628 | 620 | </zip>
|
629 | 621 |
|
|
0 commit comments