Skip to content

Commit 1b15964

Browse files
committed
Code cleanup, much more doc, split packaged xml & jave examples.
1 parent 34dd509 commit 1b15964

21 files changed

+124
-203
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This repository stores a variety of examples demonstrating how to use the Oracle
1010
| [optimizer](./optimizer) | Oracle Optmizer and Optimizer Stats examples |
1111
| [python](./python) | Python based examples |
1212
| [sql](./sql) | SQL based examples |
13+
| [sqldeveloper](./sqldeveloper) | [SQL Developer](http://www.oracle.com/technetwork/developer-tools/sql-developer/) Examples |
1314

1415
## Documentation
1516
You can find the online documentation of the Oracle Database under [docs.oracle.com/en/database/](http://docs.oracle.com/en/database/)

sqldeveloper/ - Copy.classpath

Lines changed: 0 additions & 10 deletions
This file was deleted.

sqldeveloper/ - Copy.project

Lines changed: 0 additions & 17 deletions
This file was deleted.

sqldeveloper/extension/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# SQL Developer Examples
1+
# [SQL Developer](http://www.oracle.com/technetwork/developer-tools/sql-developer/) Examples
22
## Extensions
33
You can add new folders and nodes to navigators, new actions on objects (*or sets of them*), and new editors or viewers.
44

55
Depending on requirements, this can be done in either XML or java and deployed by simply copying an XML file to the appropriate directory, or creating an extension jar -- or *check for updates* bundle for XML and/or java.
66

7-
*NOTE:* There are some "global" properties in buildtools/build.properties you should configure before moving on to:
8-
97
### Contents
108

119
* ["Simple" User Extensions (XML)](xml)

sqldeveloper/extension/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Where sqldev lives. The directory that sqldeveloper/bin is in.
66
# This is where the builds will deploy the extension
77
# and where we can find our dependencies
8-
sqldev.dir=D:/sqldeveloper-4.2.0.16.356.1154-x64/sqldeveloper
8+
sqldev.dir=D:/sqldeveloper-4.2.0.17.089.1709/sqldeveloper
99

1010
# Information about the company or person creating the extension
1111
extension.owner=Oracle Examples

sqldeveloper/extension/buildtools/ant/build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ limitations under the License.
1616
-->
1717

1818
<project name="extension">
19-
<import file="./properties.xml"/>
19+
<!-- <import file="./properties.xml"/>
2020
<import file="./classpaths.xml" />
21-
<import file="./includes.xml" />
21+
<import file="./includes.xml" /> -->
2222
<import file="./targets.xml" />
2323
</project>

sqldeveloper/extension/buildtools/ant/classpaths.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ limitations under the License.
1616
-->
1717

1818
<project name="classpaths">
19+
<import file="./properties.xml"/>
20+
1921
<!-- build classpaths -->
2022
<path id="buildutils.task.classpath">
2123
<fileset dir="${buildutils.dir}" includes="buildutils.jar" />

sqldeveloper/extension/buildtools/ant/includes.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717

1818
<project name="includes">
1919
<import file="./buildutils.xml"/>
20+
<import file="./classpaths.xml"/>
2021

2122
<!-- This classpath is considered the 'base' compile classpath and is shared by all modules. -->
2223
<path id="compile.classpath">
@@ -52,7 +53,7 @@ limitations under the License.
5253
</target>
5354

5455
<target name="resgen-inc" depends="buildutils-task" description="Generate java files for internationalized strings.">
55-
<taskdef name="resgen" classname="oracle.dbtools.resgen.ResGenTask" classpath="buildutils.task.classpath" />
56+
<taskdef name="resgen" classname="oracle.dbtools.resgen.ResGenTask" classpathref="buildutils.task.classpath" />
5657
<!-- make generated source dir -->
5758
<mkdir dir="${gen-src.dir}" />
5859
<resgen inputfile="resfiles.properties" sourceroot="src" outputroot="${built}/gen-src" >
@@ -113,7 +114,7 @@ limitations under the License.
113114
</javac>
114115
</target>
115116

116-
<property name="extension.xml" value="${extension.xml}"/>
117+
<property name="extension.xml" value="${built}/extension.xml"/>
117118
<target name="extension-inc">
118119
<!-- copy the extension.xml to the stage area -->
119120
<copy file="etc/extension.xml" tofile="${extension.xml}" />

sqldeveloper/extension/buildtools/ant/properties.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ limitations under the License.
2020
<dirname property="ant.build.dir" file="${ant.file.props}"/>
2121
<property name="root.directory" value="${ant.build.dir}/../.."/>
2222
<property name="buildutils.dir" value="${root.directory}/buildtools/buildutils" />
23-
<property name="buildutils.jar" value="${buildutils.dir}/buildutils.jar"/>
2423

2524
<!-- master properties -->
2625
<property file="${root.directory}/build.properties" />
@@ -55,6 +54,7 @@ limitations under the License.
5554
<property name="built.destination.file" value="${built}/${extension.filename}"/>
5655

5756
<property name="jar.manifest.template" value="${built}/manifest.template" />
57+
<property name="module.default.exported.packages" value=""/>
5858

5959
<property name="osgi.bundle.classpath" value="." />
6060
<property name="osgi.exported.jars" value="${built.destination.file}"/>

sqldeveloper/extension/buildtools/ant/targets.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ limitations under the License.
1717

1818
<project name="targets">
1919
<!-- The basic build flow outline. Most of the nasty bits are in includes.xml -->
20+
<import file="./includes.xml"/>
2021

2122
<!-- create a build number file if it doesn't exist, so that the build shares a consistent build number -->
22-
<target name="-create-build-number" unless="build.number.exists">
23+
<target name="create-build-number" unless="build.number.exists">
2324
<!-- new build number format -->
2425
<tstamp>
2526
<format property="ts.number" pattern="yy.DDD.HHmm" locale="en" />
@@ -38,7 +39,7 @@ limitations under the License.
3839
<target name="init-version">
3940
<!-- use antcall to call -create-build-number instead of a dependency so that we can
4041
force the reevaluation of the build.number.exists property -->
41-
<antcall target="-create-build-number" inheritall="false"/>
42+
<antcall target="create-build-number" inheritall="false"/>
4243
<property file="${build.number.filename}" prefix="build"/>
4344
<property name="version.full" value="${extension.version}.${build.number}" />
4445
</target>

0 commit comments

Comments
 (0)