~mathieu-jacomy/gephi/forceatlas2-multithread

38 by Mathieu Bastian
First commit of the Netbeans Platform Development. Default window and Projects modules.
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
3
<!-- for some information on what you could do (e.g. targets to override). -->
4
<!-- If you delete this file and reopen the project it will be recreated. -->
2186 by Eduardo Ramos
Update branding and versions numbers to 0.8alpha
5
<project name="0.8" basedir=".">
6
    <description>Builds the module suite 0.8.</description>
38 by Mathieu Bastian
First commit of the Netbeans Platform Development. Default window and Projects modules.
7
    <import file="nbproject/build-impl.xml"/>
582 by Mathieu Bastian
Branding settings.
8
9
    <condition property="isWindows">
10
        <os family="windows" />
11
    </condition>
12
13
    <target name="build-launchers" depends="suite.build-launchers">
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
14
        <!-- Replace the icon for the Windows launcher exe. -->
582 by Mathieu Bastian
Branding settings.
15
        <antcall target="replaceWindowsLauncherIcon"/>
16
    </target>
17
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
18
    <!-- Windows-only target that replaces the icon for the launcher exe with our own icon. -->
582 by Mathieu Bastian
Branding settings.
19
    <target name="replaceWindowsLauncherIcon" if="isWindows" description="Replace the icon for the Windows launcher exe">
20
        <echo message="Replacing icon of Windows launcher executable."/>
21
        <exec executable="ReplaceVistaIcon.exe" resolveexecutable="true">
767 by Mathieu Bastian
Add gephi file icon.
22
            <arg line="build/launcher/bin/${app.name}.exe ${app.name}.ico 0"/>
23
        </exec>
24
        <exec executable="ReplaceVistaIcon.exe" resolveexecutable="true">
25
            <arg line="build/launcher/bin/${app.name}.exe gephifile.ico 1"/>
582 by Mathieu Bastian
Branding settings.
26
        </exec>
27
    </target>
28
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
29
    <!-- Override to change Mac application icon. -->
582 by Mathieu Bastian
Branding settings.
30
    <target name="build-mac" depends="suite.build-mac" description="Build Mac OS X Application">
31
        <property name="nbdist-contents.dir" value="${dist.dir}/${app.name}.app/Contents"/>
32
        <property name="nbdist-resources.dir" value="${nbdist-contents.dir}/Resources"/>
33
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
34
        <!-- Replace the icns file. -->
582 by Mathieu Bastian
Branding settings.
35
        <delete file="${nbdist-resources.dir}/${app.name}.icns"/>
36
        <copy tofile="${nbdist-resources.dir}/${app.name}.icns" file="${app.name}.icns" />
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
37
38
        <!-- Unzip Netbeans Platform Localization JARs -->
39
        <antcall target="merge-l10n-mac"/>
1808 by Mathieu Bastian
Modify mac build to replace Info.plist
40
41
        <delete file="${nbdist-contents.dir}/Info.plist"/>
42
        <copy tofile="${nbdist-contents.dir}/Info.plist" file="nbproject/Info.plist" />
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
43
    </target>
44
45
    <!-- Override to add localization JARs. -->
46
    <target name="build-zip" depends="suite.build-zip" description="Replace ZIP target">
47
        <!-- Unzip Netbeans Platform Localization JARs -->
48
        <antcall target="merge-l10n-zip"/>
582 by Mathieu Bastian
Branding settings.
49
    </target>
50
1049 by Mathieu Bastian
Add Javadoc task for project suite. Creates API Index.
51
    <target name="javadoc">
2201 by Mathieu Bastian
Fix bug in Javadoc generation by including lookup
52
        <javadoc destdir="dist/apiindex" windowtitle="Gephi API Index" encoding="UTF-8" charset="UTF-8" stylesheetfile="stylesheet.css"  packagenames="org.gephi.**.api,org.gephi.**.spi,org.gephi.data.*,org.gephi.utils.progress" overview="overview.html"  classpath="build/public-package-jars/org-openide-util-lookup.jar">
1049 by Mathieu Bastian
Add Javadoc task for project suite. Creates API Index.
53
            <sourcepath>
54
                <pathelement path="AttributesAPI/src"/>
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
55
                <pathelement path="ClusteringAPI/src"/>
1771 by Mathieu Bastian
Update Javadoc targets.
56
                <pathelement path="DataLaboratoryAPI/src"/>
57
                <pathelement path="DynamicAPI/src"/>
1052 by Mathieu Bastian
Modify project ANT task for generaljavadoc creation, for all public packages only.
58
                <pathelement path="ExportAPI/src"/>
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
59
                <pathelement path="FiltersAPI/src"/>
60
                <pathelement path="GeneratorAPI/src"/>
1771 by Mathieu Bastian
Update Javadoc targets.
61
                <pathelement path="GraphAPI/src"/>
1049 by Mathieu Bastian
Add Javadoc task for project suite. Creates API Index.
62
                <pathelement path="ImportAPI/src"/>
63
                <pathelement path="LayoutAPI/src"/>
64
                <pathelement path="LongTaskAPI/src"/>
1134 by Mathieu Bastian
Javadoc task. Fill project overview.
65
                <pathelement path="PartitionAPI/src"/>
66
                <pathelement path="PreviewAPI/src"/>
67
                <pathelement path="ProjectAPI/src"/>
68
                <pathelement path="RankingAPI/src"/>
1049 by Mathieu Bastian
Add Javadoc task for project suite. Creates API Index.
69
                <pathelement path="StatisticsAPI/src"/>
70
                <pathelement path="ToolsAPI/src"/>
71
            </sourcepath>
2186 by Eduardo Ramos
Update branding and versions numbers to 0.8alpha
72
            <doctitle>Gephi 0.8alpha API Index</doctitle>
73
            <header>Gephi 0.8alpha Javadoc</header>
1049 by Mathieu Bastian
Add Javadoc task for project suite. Creates API Index.
74
        </javadoc>
75
    </target>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
76
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
77
    <target name="download-l10n-jars" description="Download Netbeans Platform Localization JARs on the website">
2213 by Mathieu Bastian
Update with Netbeans 7.0 localization archive
78
        <property name="l10n.url" value="http://netbeans.org/project_downloads/nblocalization/7.0/"/>
79
        <property name="l10n.file" value="nb70_platform_l10n.zip"/>
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
80
        <property name="l10n.dir" value="l10n"/>
1938 by Mathieu Bastian
Update autoupdate URL.
81
        <get src="${l10n.url}${l10n.file}" dest="${dist.dir}" verbose="true" skipexisting="true" ignoreerrors="true"/>      
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
82
    </target>
83
1938 by Mathieu Bastian
Update autoupdate URL.
84
    <target name="unzip-l10n" depends="download-l10n-jars" description="Unzip Netbeans Platform Localization JARs">
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
85
        <unzip src="${dist.dir}/${l10n.file}" dest="${dist.dir}/${l10n.dir}/${app.name}"/>
86
    </target>
87
    
1938 by Mathieu Bastian
Update autoupdate URL.
88
    <target name="merge-l10n-zip" depends="unzip-l10n" description="Merge Localization JARs on ZIP distribution" >
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
89
        <zip destfile="${dist.dir}/${app.name}.zip" basedir="${dist.dir}/${l10n.dir}" update="true"/>
90
        <antcall target="clean-l10n"/>
91
    </target>
92
1938 by Mathieu Bastian
Update autoupdate URL.
93
    <target name="merge-l10n-mac" depends="unzip-l10n" description="Merge Localization JARs on MAC distribution" >
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
94
        <copy todir="${dist.dir}/${app.name}.app/Contents/Resources">
95
            <fileset dir="${dist.dir}/${l10n.dir}"/>
96
        </copy>
97
        <antcall target="clean-l10n"/>
98
    </target>
99
1938 by Mathieu Bastian
Update autoupdate URL.
100
    <target name="clean-l10n" description="Clean l10n targets files and directories">
1697 by Mathieu Bastian
Create ANT targets for copying NBP localization JARs into zip and mac distribution.
101
        <delete dir="${dist.dir}/${l10n.dir}" />
102
        <delete file="${dist.dir}/${l10n.file}"/>
103
    </target>
104
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
105
    <target name="clean-toolkit" description="Clean Toolkit dir">
106
        <delete failonerror="false" includeemptydirs="true">
107
            <fileset dir="toolkit"/>
108
        </delete>
109
    </target>
110
111
    <target name="toolkit" depends="clean-toolkit,build,build-launchers" description="Build Gephi Toolkit JAR">
112
113
        <property name="build.dir" value="${basedir}/build/cluster/modules"/>
114
        <property name="libs.dir" value="${basedir}/build/cluster/modules/ext"/>
115
        <property name="toolkit.jar.name" value="gephi-toolkit"/>
116
        <property name="toolkit.dir" value="${basedir}/toolkit"/>
117
        <property name="toolkit.jar" value="${toolkit.dir}/${toolkit.jar.name}.jar"/>
1501 by Mathieu Bastian
Add Preview to toolkit Ant Task.
118
        <property name="platform.dir" value="${toolkit.dir}/platform"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
119
        <mkdir dir="${toolkit.dir}"/>
120
121
        <echo message="Packaging ${app.name} into a single JAR at ${toolkit.jar}"/>
122
123
        <subant genericantfile="${harness.dir}/suite.xml" target="copy-cluster" inheritrefs="true">
124
            <property name="dest.dir" value="${toolkit.dir}"/>
125
            <property name="nbexec.dir" value="${toolkit.dir}"/>
126
            <property name="build.dir" value="${toolkit.dir}"/>
127
            <resources refid="zip.platform.clusters"/>
128
        </subant>
129
130
        <property name="toolkit.tempdir" value="${toolkit.dir}/${toolkit.jar.name}"/>
131
        <mkdir dir="${toolkit.tempdir}"/>
132
        <property name="toolkit.platformdir" value="${platform.dir}"/>
133
        <copy file="${toolkit.platformdir}/core/org-openide-filesystems.jar" todir="${toolkit.tempdir}"/>
134
        <copy file="${toolkit.platformdir}/lib/org-openide-util.jar" todir="${toolkit.tempdir}"/>
1501 by Mathieu Bastian
Add Preview to toolkit Ant Task.
135
        <copy file="${toolkit.platformdir}/lib/org-openide-util-lookup.jar" todir="${toolkit.tempdir}"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
136
        <copy todir="${toolkit.tempdir}">
137
            <fileset dir="${toolkit.platformdir}/modules">
1420 by Mathieu Bastian
Fix the tooklkit ANT task for Netbeans FileSystem implementation. Change duplicate option to 'preserve' to get implementation service from Netbeans MasterFS module.
138
                <include name="org-openide-nodes.jar"/>
139
                <include name="org-netbeans-modules-masterfs.jar"/>
1797 by Mathieu Bastian
Includes DialogsAPI in the Toolkit, as it's now a dependency of ImportAPI due to wizards.
140
                <include name="org-openide-dialogs.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
141
            </fileset>
142
        </copy>
143
        <copy todir="${toolkit.tempdir}">
144
            <fileset dir="${build.dir}">
145
                <include name="org-gephi-algorithms.jar"/>
146
                <include name="org-gephi-data-attributes.jar"/>
147
                <include name="org-gephi-data-attributes-api.jar"/>
1501 by Mathieu Bastian
Add Preview to toolkit Ant Task.
148
                <include name="org-gephi-io-exporter-preview.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
149
                <include name="org-gephi-filters.jar"/>
150
                <include name="org-gephi-filters-api.jar"/>
151
                <include name="org-gephi-filters-plugin.jar"/>
152
                <include name="org-gephi-graph-api.jar"/>
153
                <include name="org-gephi-graph-dhns.jar"/>
154
                <include name="org-gephi-io-database-drivers.jar"/>
1425 by Mathieu Bastian
Add Export APIs in toolkit ANT task.
155
                <include name="org-gephi-utils-collection.jar"/>
156
                <include name="org-gephi-io-exporter-api.jar"/>
157
                <include name="org-gephi-io-exporter-plugin.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
158
                <include name="org-gephi-io-importer-api.jar"/>
159
                <include name="org-gephi-io-importer-plugin.jar"/>
160
                <include name="org-gephi-io-processor-plugin.jar"/>
161
                <include name="org-gephi-layout-api.jar"/>
162
                <include name="org-gephi-layout-plugin.jar"/>
1501 by Mathieu Bastian
Add Preview to toolkit Ant Task.
163
                <include name="org-gephi-preview-api.jar"/>
164
                <include name="org-gephi-preview.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
165
                <include name="org-gephi-project-api.jar"/>
166
                <include name="org-gephi-statistics-api.jar"/>
167
                <include name="org-gephi-statistics-plugin.jar"/>
1961 by Mathieu Bastian
Include TimelineAPI in Toolkit and protect from null TimelineController in DynamicRangeFilter.
168
                <include name="org-gephi-timeline.jar"/>
1741 by Mathieu Bastian
Update Toolkit ANT target.
169
                <include name="org-gephi-dynamic-api.jar"/>
170
                <include name="org-gephi-dynamic.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
171
                <include name="org-gephi-utils.jar"/>
1421 by Mathieu Bastian
Minor improvements on toolkit task.
172
                <include name="org-gephi-utils-longtask.jar" />
1511 by Mathieu Bastian
Fix toolkit ANT task.
173
                <include name="org-gephi-ranking-api.jar"/>
1510 by Mathieu Bastian
Add Ranking and Partition to toolkit ANT task.
174
                <include name="org-gephi-partition-api.jar"/>
175
                <include name="org-gephi-partition-plugin.jar"/>
1514 by Mathieu Bastian
Include Generator in Toolkit.
176
                <include name="org-gephi-io-generator-api.jar"/>
177
                <include name="org-gephi-io-generator-plugin.jar"/>
1771 by Mathieu Bastian
Update Javadoc targets.
178
                <include name="org-gephi-datalab-api.jar"/>
1911 by Mathieu Bastian
Include VisualizationAPI into toolkit because of Filters dependency.
179
                <include name="org-gephi-visualization-api.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
180
            </fileset>
181
        </copy>
182
        <copy todir="${toolkit.tempdir}">
183
            <fileset dir="${libs.dir}">
184
                <include name="batik*.jar"/>
2023 by Sébastien Heymann
renamed module BZIP2 to BZIP2 Wrapper and updated build.xml to include it in toolkit
185
                <include name="bzip2*.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
186
                <include name="core.jar"/><!-- Processing -->
187
                <include name="iText*.jar"/>
188
                <include name="jcommon*.jar"/>
1741 by Mathieu Bastian
Update Toolkit ANT target.
189
                <include name="commons*.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
190
                <include name="jfreechart*.jar"/>
191
                <include name="joda-time*.jar"/>
192
                <include name="mysql-connector*.jar"/>
193
                <include name="postgresql*.jar"/>
194
                <include name="sqljdbc*.jar"/>
195
                <include name="google-collect*.jar"/>
1745 by Mathieu Bastian
Update API Changes.
196
                <include name="stax-utils.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
197
                <include name="trove*.jar"/>
198
                <include name="xml-apis-ext*.jar"/>
1762 by Mathieu Bastian
Include JavaCSV in the toolkit target.
199
                <include name="javacsv*.jar"/>
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
200
            </fileset>
201
        </copy>
202
1420 by Mathieu Bastian
Fix the tooklkit ANT task for Netbeans FileSystem implementation. Change duplicate option to 'preserve' to get implementation service from Netbeans MasterFS module.
203
        <jar destfile="${toolkit.dir}/temp_final.jar" filesetmanifest="merge" duplicate="preserve">
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
204
            <zipgroupfileset dir="${toolkit.tempdir}" includes="*.jar"/>
2224 by Eduardo Ramos
Modify ant toolkit target to manually declare ServiceProviders of the same service that exist in different modules.
205
            
206
            <!-- Next service declarations fix problem of having service providers in different modules (duplicated files) -->
207
            <service type="org.openide.filesystems.URLMapper">
208
                <provider classname="org.netbeans.modules.masterfs.MasterURLMapper"/>
209
                <provider classname="org.netbeans.modules.openide.filesystems.DefaultURLMapperProxy"/>
210
                <provider classname="org.openide.filesystems.MemoryFileSystem$Mapper"/>
211
            </service>
212
            
213
            <service type="javax.annotation.processing.Processor">
214
                <provider classname="org.netbeans.modules.openide.filesystems.CleaningAnnotationProcessor"/>
215
                <provider classname="org.netbeans.modules.openide.util.NbBundleProcessor"/>
216
                <provider classname="org.netbeans.modules.openide.util.URLStreamHandlerRegistrationProcessor"/>
217
                <provider classname="org.netbeans.modules.openide.util.ServiceProviderProcessor"/>
218
            </service>
219
            
220
            <service type="java.sql.Driver">
221
                <provider classname="com.mysql.jdbc.Driver"/>
222
                <provider classname="org.postgresql.Driver"/>
223
                <provider classname="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
224
            </service>
225
            
226
            <service type="org.gephi.project.spi.WorkspacePersistenceProvider">
227
                <provider classname="org.gephi.data.attributes.serialization.AttributeModelPersistenceProvider"/>
228
                <provider classname="org.gephi.graph.dhns.DhnsPersistenceProvider"/>
229
                <provider classname="org.gephi.graph.dhns.DataPersistenceProvider"/>
230
                <provider classname="org.gephi.data.attributes.serialization.AttributeRowPersistenceProvider"/>
231
                <provider classname="org.gephi.dynamic.DynamicModelPersistenceProvider"/>
232
                <provider classname="org.gephi.filters.FilterModelPersistenceProvider"/>
233
                <provider classname="org.gephi.layout.LayoutModelPersistenceProvider"/>
234
                <provider classname="org.gephi.partition.impl.PartitionModelPersistenceProvider"/>
235
            </service>
236
            
237
            <service type="org.gephi.project.spi.WorkspaceDuplicateProvider">
238
                <provider classname="org.gephi.data.attributes.AttributeModelDuplicateProvider"/>
239
                <provider classname="org.gephi.graph.dhns.DhnsDuplicateProvider"/>
240
            </service>
241
                
1409 by Mathieu Bastian
Add experimental Gephi Toolkit Ant Task, make a single JAR.
242
            <manifest>
243
            </manifest>
244
        </jar>
245
246
        <zip destfile="${toolkit.jar}">
247
            <zipfileset src="${toolkit.dir}/temp_final.jar"
248
            excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
249
        </zip>
250
251
        <delete file="${toolkit.dir}/temp_final.jar"/>
252
        <delete dir="${platform.dir}"/>
253
254
    </target>
1520 by Mathieu Bastian
Add toolkit-javadoc ANT task.
255
256
    <target name="toolkit-javadoc">
257
        <javadoc destdir="${basedir}/toolkit/doc" windowtitle="Gephi Toolkit API Index" encoding="UTF-8" charset="UTF-8" stylesheetfile="stylesheet.css"  packagenames="org.gephi.*" overview="overview.html" classpath="build/public-package-jars/org-openide-util-lookup.jar">
258
            <sourcepath>
259
                <pathelement path="Algorithms/src"/>
260
                <pathelement path="AttributesAPI/src"/>
261
                <pathelement path="PreviewExport/src"/>
262
                <pathelement path="FiltersAPI/src"/>
263
                <pathelement path="FiltersPlugin/src"/>
264
                <pathelement path="GraphAPI/src"/>
265
                <pathelement path="DBDrivers/src"/>
266
                <pathelement path="ExportAPI/src"/>
267
                <pathelement path="ExportPlugin/src"/>
268
                <pathelement path="ImportAPI/src"/>
269
                <pathelement path="ImportPlugin/src"/>
270
                <pathelement path="ProcessorPlugin/src"/>
271
                <pathelement path="LayoutAPI/src"/>
272
                <pathelement path="LayoutPlugin/src"/>
273
                <pathelement path="PreviewAPI/src"/>
274
                <pathelement path="ProjectAPI/src"/>
275
                <pathelement path="StatisticsAPI/src"/>
276
                <pathelement path="StatisticsPlugin/src"/>
1741 by Mathieu Bastian
Update Toolkit ANT target.
277
                <pathelement path="DynamicAPI/src"/>
1520 by Mathieu Bastian
Add toolkit-javadoc ANT task.
278
                <pathelement path="Utils/src"/>
279
                <pathelement path="LongTaskAPI/src"/>
280
                <pathelement path="RankingAPI/src"/>
281
                <pathelement path="PartitionAPI/src"/>
282
                <pathelement path="PartitionPlugin/src"/>
283
                <pathelement path="GeneratorAPI/src"/>
284
                <pathelement path="GeneratorPlugin/src"/>
1771 by Mathieu Bastian
Update Javadoc targets.
285
                <pathelement path="DataLaboratoryAPI/src"/>
1520 by Mathieu Bastian
Add toolkit-javadoc ANT task.
286
            </sourcepath>
287
            <doctitle>Gephi Toolkit Javadoc</doctitle>
1771 by Mathieu Bastian
Update Javadoc targets.
288
            <header>Gephi Toolkit Javadoc</header>
1520 by Mathieu Bastian
Add toolkit-javadoc ANT task.
289
        </javadoc>
1528 by Mathieu Bastian
Zip toolkit Javadoc.
290
        <zip destfile="${basedir}/toolkit/toolkit-javadoc.zip" basedir="${basedir}/toolkit/doc">
291
        </zip>
1520 by Mathieu Bastian
Add toolkit-javadoc ANT task.
292
    </target>
38 by Mathieu Bastian
First commit of the Netbeans Platform Development. Default window and Projects modules.
293
</project>