View | Details | Raw Unified | Return to bug 32082
Collapse All | Expand All

(-).cvsignore (-2 lines)
 Lines 2-7    Link Here 
2
looks.nbm
2
looks.nbm
3
manifest-subst.mf
3
manifest-subst.mf
4
Info
4
Info
5
LooksAPIs
6
LooksAPIs.zip
7
javadoc
5
javadoc
(-)build.xml (-80 / +27 lines)
 Lines 8-42    Link Here 
8
http://www.sun.com/
8
http://www.sun.com/
9
9
10
The Original Code is NetBeans. The Initial Developer of the Original
10
The Original Code is NetBeans. The Initial Developer of the Original
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
12
Microsystems, Inc. All Rights Reserved.
12
Microsystems, Inc. All Rights Reserved.
13
-->
13
-->
14
14
15
<!-- ToDo: may need to ensure that SearchTask.java is compiled before Utilities2.java -->
16
<!--       due to an obscure 1.3 compiler bug                                         -->
17
<project name="looks" default="netbeans" basedir=".">
15
<project name="looks" default="netbeans" basedir=".">
18
16
19
  <property name="nbm_alias" value="nb_ide"/>
17
  <property name="nbm_alias" value="nb_ide"/>
20
  <property name="homepage.base" value="netbeans.org"/>
18
  <property name="homepage.base" value="netbeans.org"/>
21
  <property name="dist.base" value="www.netbeans.org/download/nbms/40"/>
19
  <property name="dist.base" value="www.netbeans.org/download/nbms/40"/>
22
  <property name="license.file" value="../../nbbuild/standard-nbm-license.txt"/>
20
  <property name="license.file" value="${nbroot}/nbbuild/standard-nbm-license.txt"/>
23
  <property name="binroot" location="../../../nbextra"/>
24
  <property name="nbroot" location="../.."/>
21
  <property name="nbroot" location="../.."/>
25
22
26
  <taskdef name="makenbm" classname="org.netbeans.nbbuild.MakeNBM" classpath="../../nbbuild/nbantext.jar"/>
23
  <taskdef name="makenbm" classname="org.netbeans.nbbuild.MakeNBM" classpath="${nbroot}/nbbuild/nbantext.jar"/>
27
  <taskdef name="genlist" classname="org.netbeans.nbbuild.MakeListOfNBM" classpath="../../nbbuild/nbantext.jar"/>
24
  <taskdef name="genlist" classname="org.netbeans.nbbuild.MakeListOfNBM" classpath="${nbroot}/nbbuild/nbantext.jar"/>
28
  <taskdef name="locjar" classname="org.netbeans.nbbuild.LocalizedJar" classpath="../../nbbuild/nbantext.jar"/>
25
  <taskdef name="locjar" classname="org.netbeans.nbbuild.LocalizedJar" classpath="${nbroot}/nbbuild/nbantext.jar"/>
26
27
  <path id="cp">
28
    <pathelement location="${nbroot}/openide/openide-13javac-workaround.jar"/>
29
    <pathelement location="${nbroot}/openide/netbeans/lib/openide.jar"/>
30
    <fileset dir="${nbroot}/core/external">
31
      <include name="xml-apis*.jar"/>
32
    </fileset>
33
    <pathelement location="${nbroot}/core/naming/netbeans/modules/autoload/naming.jar"/>
34
  </path>
29
35
30
  <target name="compile">
36
  <target name="compile">
31
    <javac srcdir="src" destdir="src" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}">
37
    <javac srcdir="src" destdir="src" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}">
32
      <classpath>
38
      <classpath refid="cp"/>
33
	<pathelement location="../../openide/openide-13javac-workaround.jar"/>
34
        <fileset dir="../../openide/netbeans/lib">
35
          <include name="openide*.jar" />
36
        </fileset>
37
        <pathelement location="${binroot}/core/release/lib/ext/xml-apis.jar"/>
38
        <pathelement location="../../core/naming/netbeans/modules/autoload/naming.jar"/>
39
      </classpath>
40
    </javac>
39
    </javac>
41
  </target>
40
  </target>
42
41
 Lines 47-60    Link Here 
47
    <locjar jarfile="netbeans/modules/autoload/looks.jar"
46
    <locjar jarfile="netbeans/modules/autoload/looks.jar"
48
            manifest="manifest-subst.mf"
47
            manifest="manifest-subst.mf"
49
            basedir="src"
48
            basedir="src"
50
	    excludesfile="../../nbbuild/standard-jar-excludes.txt"
49
	    excludesfile="${nbroot}/nbbuild/standard-jar-excludes.txt"
51
	    compress="false">
50
	    compress="false">
52
        <locale name="ja"/>
51
        <locale name="ja"/>
53
    </locjar>
52
    </locjar>
54
  </target>
53
  </target>
55
54
56
  <target name="netbeans" depends="jars">
55
  <target name="netbeans" depends="jars">
57
    <genlist targetname="nbm" outputfiledir="../../nbbuild/netbeans"/>
56
    <genlist targetname="nbm" outputfiledir="${nbroot}/nbbuild/netbeans"/>
58
  </target>
57
  </target>
59
58
60
  <target name="nbm" depends="netbeans">
59
  <target name="nbm" depends="netbeans">
 Lines 79-148    Link Here 
79
    <delete dir="netbeans"/>
78
    <delete dir="netbeans"/>
80
    <delete dir="Info"/>
79
    <delete dir="Info"/>
81
    <delete dir="javadoc"/>
80
    <delete dir="javadoc"/>
82
    <delete dir="LooksAPIs"/>
83
    <delete file="LooksAPIs.zip"/>
84
  </target>
81
  </target>
85
82
86
  <!-- api changes documentation -->
83
  <target name="javadoc">
87
  <target name="apichanges-check" description="Check syntax of API changes list. Requires Ant 1.4!">
84
    <!-- Ant 1.4 bug workaround: <property refid="..."/> does not work inside <ant> -->
88
      <xmlvalidate file="api/doc/changes/apichanges.xml" failonerror="true"/>
85
    <property name="_cp" refid="cp"/>
89
  </target>
86
    <ant dir="${nbroot}/nbbuild/javadoctools" antfile="template.xml" target="javadoc">
90
  <target name="apichanges-generate" description="Regenerate HTML from XML API changes list.">
87
      <property name="javadoc.base" location="."/>
91
      <!-- Ant 1.3 and 1.4 disagree on style attribute. -->
88
      <property name="javadoc.name" value="LooksAPI"/>
92
      <!-- 1.3: treated as a name relative to XML file. -->
89
      <property name="javadoc.title" value="Looks API"/>
93
      <!-- 1.4: treated as a filename consistent with normal Ant usage. -->
90
      <property name="javadoc.packages" value="org.netbeans.api.looks,org.netbeans.spi.looks"/>
94
      <!-- Be safe and give the absolute path here. -->
91
      <property name="javadoc.classpath" value="${_cp}"/>
95
      <style in="api/doc/changes/apichanges.xml" out="../www/proposals/looks/apichanges.html" destdir="www" style="${basedir}/../../openide/api/doc/changes/apichanges.xsl"/>
92
    </ant>
96
  </target>
97
98
  <target name="javadoc" depends="looks-apis">
99
    <copy todir="javadoc">
100
      <fileset dir=".">
101
        <include name="LooksAPIs/**"/>
102
        <include name="LooksAPIs.zip"/>
103
      </fileset>
104
    </copy>
105
  </target>
106
107
  <!-- Looks API documentation -->
108
  <target name="looks-apis" description="Create Looks API documentation.">
109
    <property name="jdk-docs-location" value="http://java.sun.com/j2se/1.3/docs/api"/>
110
    <property name="openide-docs-location" value="http://www.netbeans.org/download/apis/"/>
111
    <echo message="Build Looks API documentation..."/>
112
    <delete dir="LooksAPIs"/>
113
    <mkdir dir="LooksAPIs"/>
114
    <javadoc destdir="LooksAPIs"
115
             packagenames="org.netbeans.api.*,org.netbeans.spi.*"
116
             doctitle="NetBeans Looks APIs"
117
             use="true"
118
             splitindex="true"
119
             author="false"
120
             version="false"
121
             maxmemory="64m"
122
    >
123
      <sourcepath>
124
        <pathelement location="api/doc"/>
125
        <pathelement location="src"/>
126
      </sourcepath>
127
      <classpath>
128
        <fileset dir="${nbroot}/openide/netbeans/lib">
129
          <include name="openide*.jar" />
130
        </fileset>
131
        <pathelement location="${binroot}/core/release/lib/ext/xml-apis.jar"/>
132
        <pathelement location="../../core/naming/netbeans/modules/autoload/naming.jar"/>
133
      </classpath>
134
      <link href="${jdk-docs-location}"
135
            offline="true"
136
            packagelistLoc="${nbroot}/openide/api/doc"
137
      />
138
      <link href="${openide-docs-location}"
139
            offline="true"
140
            packagelistLoc="api/doc/openide"
141
      />
142
    </javadoc>
143
    <zip zipfile="LooksAPIs.zip" basedir="LooksAPIs"/>
144
  </target>
93
  </target>
145
94
146
147
  
148
</project>
95
</project>

Return to bug 32082
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo