My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<project name="BuildZmanim" default="all" basedir="../">
<target name="all" depends="jar_zmanim, javadoc_zmanim, zip_zmanim, backup_zmanim"/>
<property name="version" value="1.3.0beta-Sep-09-2011"/>
<property name="author" value="Eliyahu Hershfeld"/>
<property name="lib_dir" value="lib"/>
<property name="third_party_jars" value="../../dev/jars"/>
<property name="src_dir" value="src/Java"/>
<property name="tmp_dir" value="tempZmanimBuildDir"/>
<property name="release_dir" value="release"/>
<property name="doc_dir" value="docs/api"/>
<property name="build_dir" value="build"/>
<property name="backup_dir" value="backup"/>

<target name="echo_values">
<echo message="third_party_jars = ${third_party_jars}"/>
<echo message="lib_dir = ${lib_dir}"/>
<echo message="src_dir = ${src_dir}"/>
<echo message="release_dir = ${release_dir}"/>
<echo message="doc_dir = ${doc_dir}"/>
<echo message="build_dir = ${build_dir}"/>
<echo message="backup_dir = ${backup_dir}"/>
</target>

<target name = "init" depends="echo_values">
<delete dir="${tmp_dir}"/>
<mkdir dir="${tmp_dir}"/>
<mkdir dir="${lib_dir}"/>
<mkdir dir="${release_dir}"/>
<mkdir dir="${backup_dir}"/>
</target>
<path id="project.class.path">
<fileset dir="${third_party_jars}">
<include name="iText.jar"/>
<!--include name="poi-3.6-20091214.jar"/--><!--JDK greater than 1.4? -->
<include name="poi-3.2-FINAL-20081019.jar"/>
<include name="jdom-1.0.jar"/>
<include name="rome-1.0.jar"/>
</fileset>
</path>

<target name="build_zmanim" depends="init">
<javac
srcdir="${src_dir}"
destdir="${tmp_dir}"
debug="on"
deprecation="on"
fork="yes"
includeantruntime="false"
target="1.6"
source="1.6">

<!--compilerarg value="-Xlint" /-->
<include name="net/sourceforge/zmanim/*.java"/>
<include name="net/sourceforge/zmanim/util/*.java"/>
<exclude name="net/sourceforge/zmanim/util/ExperimentalNOAACalculator.java"/>
<include name="net/sourceforge/zmanim/hebrewcalendar/*.java"/>
<!--include name="net/sourceforge/zmanim/test/*.java"/-->
</javac>
</target>

<target name="jar_zmanim" depends="build_zmanim">
<tstamp>
<format property="NOW" pattern="MMMM dd, yyyy, hh:mm a" locale="en"/>
</tstamp>
<jar jarfile="${lib_dir}/zmanim-${version}.jar">
<manifest>
<attribute name="Built-By" value="${author}"/>
<attribute name="Specification-Title" value="Zmanim"/>
<attribute name="Specification-Version" value="${version} (Build Date: ${NOW})"/>
<attribute name="Specification-Vendor" value="${author}"/>
<attribute name="Implementation-Title" value="Zmanim"/>
<attribute name="Implementation-Version" value="${version} (Build Date: ${NOW})"/>
<attribute name="Implementation-Vendor" value="${author}"/>
<attribute name="Sealed" value="false"/>
<!-- attribute name="Main-Class" value="net.sourceforge.zmanim.test.ZmanimTester"/ -->
</manifest>
<fileset dir="${tmp_dir}">
<include name="net/sourceforge/zmanim/*.class"/>
<include name="net/sourceforge/zmanim/util/*.class"/>
<exclude name="net/sourceforge/zmanim/util/ExperimentalNOAACalculator.java"/>
<include name="net/sourceforge/zmanim/hebrewcalendar/*.class"/>
<!-- include name="net/sourceforge/zmanim/applet/*.class"/ -->
<!-- include name="net/sourceforge/zmanim/test/*.class"/ -->
</fileset>
</jar>
<jar jarfile="${lib_dir}/zmanimAstronomical-${version}.jar">
<manifest>
<attribute name="Built-By" value="${author}"/>
<attribute name="Specification-Title" value="Zmanim Astronomical"/>
<attribute name="Specification-Version" value="${version} (Build Date: ${NOW})"/>
<attribute name="Specification-Vendor" value="${author}"/>
<attribute name="Implementation-Title" value="Zmanim Astronomical"/>
<attribute name="Implementation-Version" value="${version} (Build Date: ${NOW})"/>
<attribute name="Implementation-Vendor" value="${author}"/>
<attribute name="Sealed" value="false"/>
</manifest>
<fileset dir="${tmp_dir}">
<include name="net/sourceforge/zmanim/AstronomicalCalendar.class"/>
<include name="net/sourceforge/zmanim/util/*.class"/>
<exclude name="net/sourceforge/zmanim/util/ExperimentalNOAACalculator.java"/>
</fileset>
</jar>
</target>

<target name="zip_zmanim">
<zip zipfile="${release_dir}/zmanim-${version}.zip">
<zipfileset dir="${lib_dir}" includes="zmanim-${version}.jar" prefix="lib"/>
<zipfileset dir="${lib_dir}" includes="zmanimAstronomical-${version}.jar" prefix="lib"/>
<!--zipfileset dir="${lib_dir}" includes="zmanimApplet.jar" prefix="lib"/-->
<zipfileset dir="${src_dir}" includes="net/sourceforge/zmanim/*.java,net/sourceforge/zmanim/util/*.java,net/sourceforge/zmanim/hebrewcalendar/*.java" prefix="src"/>
<zipfileset dir="${src_dir}" includes="net/sourceforge/zmanim/package.html,net/sourceforge/zmanim/util/package.html,net/sourceforge/zmanim/hebrewcalendar/package.html" prefix="src"/><!-- used for javadoc and has to be in the src dir-->
<zipfileset dir="${doc_dir}" includes="**/*" prefix="docs/api"/><!-- avoid .* to include package-list -->
<zipfileset dir="${build_dir}" includes="build.xml,packageLists/oracle/package-list" prefix="build"/><!-- avoid .* to include package-list -->
</zip>
</target>

<target name="javadoc_zmanim">
<delete dir="${doc_dir}"/>
<javadoc
destdir="${doc_dir}"
author="true"
version="true"
use="true"
package="true"
windowtitle="Zmanim API ${version}"
linksource="yes"
breakiterator="yes"
charset="utf-8">
<classpath refid="project.class.path"/>
<fileset dir="${src_dir}" defaultexcludes="yes">
<include name="**/*.java" />
<exclude name="net/sourceforge/zmanim/applet/*.java"/>
</fileset>
<doctitle><![CDATA[Zmanim API ${version}]]></doctitle>
<header><![CDATA[<a href="http://www.kosherjava.com/zmanim/" target="_top">KosherJava Zmanim Homepage</a>]]></header>
<bottom><![CDATA[<i>Copyright &#169; 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html">LGPL 2.1 license</a></i>]]></bottom>
<link offline="true" href="http://download.oracle.com/javase/7/docs/api/" packagelistLoc="${build_dir}/packageLists/oracle"/>
<!--link offline="true" href="http://itext.ugent.be/library/api/" packagelistLoc="${build_dir}/packageLists/iText"/>
<link offline="true" href="http://jakarta.apache.org/poi/apidocs/" packagelistLoc="${build_dir}/packageLists/poi"/>
<link offline="true" href="https://rome.dev.java.net/apidocs/0_6/" packagelistLoc="${build_dir}/packageLists/rome"/-->
</javadoc>
</target>

<target name="backup_zmanim">
<tstamp>
<format property="backupTime" pattern="MMMM-dd-yyyy-hhmma" locale="en"/>
</tstamp>
<zip zipfile="${backup_dir}/zmanim_backup_${backupTime}.zip">
<zipfileset dir="${lib_dir}" includes="zmanim*.jar" prefix="lib"/>
<zipfileset dir="${src_dir}" includes="**/*" prefix="src"/>
<zipfileset dir="${build_dir}" includes="build.xml,packageLists/oracle/package-list" prefix="build"/><!-- avoid .* to include package-list -->
</zip>
</target>
</project>

Change log

r65 by ehershfeld on Sep 18, 2011   Diff
cleanup
Go to: 
Project members, sign in to write a code review

Older revisions

r2 by jay.gindin on Mar 6, 2011   Diff
Initial commit based on 1.3.0alpha1
ZIP file.
All revisions of this file

File info

Size: 8354 bytes, 154 lines
Powered by Google Project Hosting