Skip to content

Commit

Permalink
Rely on NB platform outside the NB IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
ecerulm committed Dec 17, 2010
1 parent 3ed870d commit d5983b5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
netbeans-rcp
NBPlatformApp/SearchLucene/nullen4j
.DS_Store
dist
Expand Down
6 changes: 6 additions & 0 deletions NBPlatformApp/build.xml
Expand Up @@ -4,7 +4,13 @@
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="NBPlatformApp" basedir=".">
<description>Builds the module suite NBPlatformApp/EN4J.</description>
<available file="${basedir}/../netbeans-rcp/harness/suite.xml" property="nbplatform.present" />

<fail unless="nbplatform.present">
Missing NB Platform.
Download the NB platform files files into ../netbeans-rcp by issuing:
ant -f download_nb_platform.xml
</fail>
<exec outputproperty="app.version" failifexecutionfails="false" executable="git">
<arg line="describe --always --dirty" />
</exec>
Expand Down
17 changes: 17 additions & 0 deletions NBPlatformApp/download_nb_platform.xml
@@ -0,0 +1,17 @@
<project name="Download NetBeans Platform" basedir="." default="download-netbeans-rcp">
<description>Download NetBeans Platform.</description>
<property name="netbeans" value="${basedir}/../netbeans-rcp"/>
<property name="bootstrap.url" value="http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar"/>
<property name="netbeans.updatecenter.url"
value="http://bits.netbeans.org/netbeans/6.9/community/fcs/uc/catalog.xml.gz"/>

<target name="download-netbeans-rcp">
<mkdir dir="${netbeans}/harness"/>
<get src="${bootstrap.url}" dest="${netbeans}/harness/tasks.jar" usetimestamp="true" verbose="true"/>
<taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${netbeans}/harness/tasks.jar"/>
<autoupdate installdir="${netbeans}" updatecenter="${netbeans.updatecenter.url}">
<modules includes=".*" clusters="harness[0-9]*"/>
<modules includes=".*" clusters="platform[0-9]*"/>
</autoupdate>
</target>
</project>
4 changes: 4 additions & 0 deletions NBPlatformApp/nbproject/platform.properties
@@ -1,3 +1,7 @@
suite.dir=${basedir}
# suite.dir will only be set to basedir if suite.dir was undefined
nbplatform.active.dir=${suite.dir}/../netbeans-rcp
harness.dir=${nbplatform.active.dir}/harness
cluster.path=\
${nbplatform.active.dir}/platform
disabled.modules=\
Expand Down

0 comments on commit d5983b5

Please sign in to comment.