Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
petenattress committed May 23, 2014
0 parents commit 47ffe56
Show file tree
Hide file tree
Showing 116 changed files with 10,581 additions and 0 deletions.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2014, FIVIUM LTD.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Fivium LTD. nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ScriptRunner
============

ScriptRunner is a command line utility for promoting database source code and metadata in a controlled and repeatable way.
132 changes: 132 additions & 0 deletions build/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="windows-1252" ?>
<project xmlns="antlib:org.apache.tools.ant" name="ScriptRunner2" default="all" basedir=".">
<!--property file="build.properties"/-->
<property name="output.dir" value="../build-output"/>
<property name="lib.dir" value="../lib"/>
<path id="library.ScriptRunner">
<fileset dir="../lib">
<include name="*.jar" />
</fileset>
</path>
<path id="library.JUnit">
<fileset dir="../test-lib">
<include name="*.jar" />
</fileset>
</path>
<path id="classpath">
<path refid="library.ScriptRunner"/>
</path>
<path id="classpath-tests">
<path refid="library.ScriptRunner"/>
<path refid="library.JUnit"/>
</path>
<patternset id="copy.patterns">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/*.xsd"/>
<include name="**/*.xsl"/>
<include name="**/*.sql"/>
<include name="**/*.txt"/>
<include name="**/*.cfg"/>
<include name="**/*.mf"/>
</patternset>

<target name="init">
<tstamp/>
<mkdir dir="${output.dir}"/>
<mkdir dir="${output.dir}/classes"/>
<mkdir dir="${output.dir}/test-classes"/>
<mkdir dir="${output.dir}/jar"/>
</target>
<target name="all" description="Build the project" depends="clean,compile,copy,build-jar,test"/>

<target name="clean" description="Clean the project">
<delete includeemptydirs="true" quiet="true">
<fileset dir="${output.dir}" includes="**/*"/>
</delete>
</target>

<target name="compile" description="Compile Java source files" depends="init">
<javac destdir="${output.dir}/classes" classpathref="classpath" debug="true" nowarn="off"
deprecation="off" encoding="Cp1252" source="1.6" target="1.6" debuglevel="lines,vars,source">
<src path="../src"/>
</javac>
</target>

<target name="test">
<antcall target="compile-tests"/>
<antcall target="copy-test-files"/>
<antcall target="run-junit"/>
</target>

<target name="compile-tests">
<javac destdir="${output.dir}/test-classes" debug="true" nowarn="off"
deprecation="off" encoding="Cp1252" source="1.6" target="1.6" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath-tests"/>
<pathelement location="${output.dir}/classes"/>
</classpath>
<src path="../tests"/>
</javac>
</target>

<target name="run-junit">
<junit fork="yes" printsummary="yes" haltonfailure="yes" showoutput="yes">
<classpath refid="classpath-tests"/>
<classpath path="${output.dir}/classes"/>
<classpath path="${output.dir}/test-classes"/>
<formatter type="xml"/>
<batchtest todir="${output.dir}">
<fileset dir="${output.dir}/test-classes">
<include name="**/*.class"/>
</fileset>
</batchtest>
</junit>
</target>

<target name="copy-test-files" description="Copy test files to test class directory">
<copy todir="${output.dir}/test-classes">
<fileset dir="../tests">
<patternset refid="copy.patterns"/>
</fileset>
</copy>
</target>

<target name="copy" description="Copy files to output directory" depends="init">
<copy todir="${output.dir}/classes">
<fileset dir="../src">
<patternset refid="copy.patterns"/>
</fileset>
</copy>
<input message="Please enter ScriptRunner version, e.g. 2.X.Y (default=DEV):" addproperty="scriptrunner.version" defaultvalue="DEV"/>
<echo file="${output.dir}/classes/com/fivium/ScriptRunner2/util/version.properties">version_number=${scriptrunner.version}
software_name=Fivium ScriptRunner</echo>
</target>
<target name="build-jar">
<!--<jar destfile="${output.dir}/jar/ScriptRunner.jar"
basedir="${output.dir}/classes"
excludes="META-INF"
level="9">
<zipgroupfileset dir="${lib.dir}"/>
<manifest>
<attribute name="Main-Class" value="com.fivium.scriptrunner2.Main"/>
</manifest>
</jar>-->

<jar jarfile="${output.dir}/jar/external-libs.jar">
<zipgroupfileset dir="${lib.dir}">
<include name="**/*.jar"/>
</zipgroupfileset>
</jar>
<!--<sleep seconds="1"/>-->
<jar destfile="${output.dir}/jar/ScriptRunner.jar" basedir="${output.dir}/classes" level="9">
<zipfileset src="${output.dir}/jar/external-libs.jar">
<exclude name="META-INF/**"/>
</zipfileset>
<manifest>
<attribute name="Main-Class" value="com.fivium.scriptrunner2.Main"/>
</manifest>
</jar>
<delete file="${output.dir}/jar/external-libs.jar"/>
</target>
</project>
25 changes: 25 additions & 0 deletions ide/jdev/11.1.2/ScriptRunner2.jws
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<jws:workspace xmlns:jws="http://xmlns.oracle.com/ide/project">
<value n="application-package-prefix" v="com.fivium.scriptrunner2"/>
<value n="appTemplateId" v="javaAppTemplate"/>
<hash n="component-versions">
<value n="oracle.adf.share.dt.migration.jps.JaznCredStoreMigratorHelper" v="11.1.1.1.0"/>
<value n="oracle.adfdtinternal.model.ide.security.extension.AdfSecurityMigrator" v="11.1.1.1.0.13"/>
<value n="oracle.ide.model.Project" v="11.1.1.1.0;11.1.2.0.0"/>
<value n="oracle.jbo.dt.jdevx.deployment.JbdProjectMigrator" v="11.1.2.0.0"/>
<value n="oracle.jdevimpl.appresources.ApplicationSrcDirMigrator" v="11.1.2.0.0"/>
<value n="oracle.jdevimpl.xml.oc4j.jps.JpsConfigMigratorHelper" v="11.1.1.1.0.1"/>
<value n="oracle.jdevimpl.xml.wl.WeblogicMigratorHelper" v="11.1.1.1.0"/>
<value n="oracle.mds.internal.dt.deploy.base.MarMigratorHelper" v="11.1.1.1.0"/>
<value n="oracle.mds.internal.dt.ide.migrator.MDSConfigMigratorHelper" v="11.1.1.0.5313"/>
</hash>
<list n="contentSets">
<string v="oracle.mds.internal.dt.ide.appresources.MDSAppResourceCSProvider/MDSAppContentSet"/>
<string v="oracle.jdeveloper.model.PathsConfiguration/ADFContentSet"/>
<string v="oracle.jdeveloper.model.PathsConfiguration/ApplicationSrcContentSet"/>
<string v="oracle.jdeveloper.model.PathsConfiguration/ApplicationLevelMavenPOMContentSet"/>
</list>
<list n="listOfChildren">
<hash><url n="URL" path="ScriptRunner2/ScriptRunner2.jpr"/></hash>
</list>
</jws:workspace>
Loading

0 comments on commit 47ffe56

Please sign in to comment.