Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/development'
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Feb 9, 2016
2 parents a385e0f + 3b1e3f0 commit 034eb68
Show file tree
Hide file tree
Showing 416 changed files with 6,984 additions and 9,425 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/build/temp
/build/requires.txt
/lib
/src/cfml/box.json
settings.xml
.project
WEB-INF
Expand All @@ -19,4 +20,5 @@ build/resources
src/cfml/.version
org.eclipse.jdt.ui.prefs
apidocs/docbox
commandbox.rb
commandbox.rb
/testbox
4 changes: 2 additions & 2 deletions apidocs/box.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version":"1.0.0",
"slug":"commandbox-apidocs",
"private":true,
"defaultPort":8511,
"defaultPort":8989,
"dependencies":{
"docbox":"https://github.com/Ortus-Solutions/DocBox/archive/v2.0.3.zip"
"docbox":"https://github.com/Ortus-Solutions/DocBox/archive/v2.0.4.zip"
},
"devDependencies":{

Expand Down
14 changes: 11 additions & 3 deletions apidocs/index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ try{
strategy = "strategy.commandbox.CommandBoxStrategy",
properties = {
projectTitle = "CommandBox v#url.version#",
outputDir = url.path
outputDir = url.path
}
);
baseDir = expandPath( '/commandbox' );
commandDirs = directoryList(path='/commandbox/system/modules', recurse=true, filter=function(path){ return reFindNoCase( '.*[/\\]commands$', arguments.path ); } );
source = [
{ dir = expandPath( "/commandbox/commands" ), mapping = "commandbox.commands" },
{ dir = expandPath( "/commandbox/system/commands" ), mapping = "commandbox.system.commands" }
];
for( dir in commandDirs ) {
source.append(
{
dir : dir,
mapping : listChangeDelims( replaceNoCase( dir, baseDir, 'commandbox' ), '.', '/\' )
}
);
}
docbox.generate( source );
} catch ( Any e ){
rethrow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
.on("changed.jstree", function (e, data) {
var obj = data.instance.get_node(data.selected[0]).li_attr;
if( obj.linkhref ) {
window.parent.frames['classFrame'].location.assign( obj.linkhref );
window.parent.frames['classFrame'].location.href = obj.linkhref;
}
});
Expand Down
2 changes: 2 additions & 0 deletions build/build-auto.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ api.dir=/var/www/vhosts/stg.ortussolutions.com/integration/box-cli/build/temp/ap
#debian+rpm repos
rpm.repo=/var/www/vhosts/stg.ortussolutions.com/integration/artifacts/RPMS/noarch
deb.repo=/var/www/vhosts/stg.ortussolutions.com/integration/artifacts/debs/noarch
rpm.repo.stable=/var/www/vhosts/stg.ortussolutions.com/integration/artifacts/RPMS-stable/noarch
deb.repo.stable=/var/www/vhosts/stg.ortussolutions.com/integration/artifacts/debs-stable/noarch
#mvn.type=snapshot#
8 changes: 5 additions & 3 deletions build/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ java.pack200=false
#dependencies
dependencies.dir=${basedir}/lib
cfml.version=4.5.2.018
cfml.loader.version=1.0.7
cfml.loader.version=1.1.0
cfml.cli.version=${cfml.loader.version}.${cfml.version}
lucee.version=4.5.2.018
jre.version=1.8.0_60
jre.version=1.8.0_72
launch4j.version=3.4
runwar.version=3.2.0
runwar.version=3.3.3

#build locations
build.type=localdev
Expand All @@ -35,6 +35,8 @@ api.dir=${basedir}/temp/apidocs
#debian+rpm repos
rpm.repo=${dist.dir}/RPMS/noarch
deb.repo=${dist.dir}/debs/noarch
rpm.repo.stable=${dist.dir}/RPMS-stable/noarch
deb.repo.stable=${dist.dir}/debs-stable/noarch
#mvn.type=snapshot

#remote repos
Expand Down
71 changes: 63 additions & 8 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ External Dependencies:
<!-- Version: UPDATE ON EACH RELEASE AS NEEDED -->
<property name="distro.groupID" value="ortussolutions" />
<property name="distro.name" value="commandbox"/>
<property name="commandbox.version" value="2.2.0"/>
<property name="commandbox.stableVersion" value="2.2.0"/>
<property name="commandbox.version" value="3.0.0"/>
<property name="commandbox.stableVersion" value="3.0.0"/>

<!-- Time Label -->
<tstamp prefix="start"/>
Expand Down Expand Up @@ -52,6 +52,16 @@ External Dependencies:
<import file="${cfdistro.build.file}"/>
<property name="maven.repo.local" value="${cfdistro.basedir}/artifacts"/>

<if>
<equals arg1="${commandbox.version}" arg2="${commandbox.stableVersion}"/>
<then>
<property name="isStable" value="true"/>
</then>
<else>
<property name="isStable" value="false"/>
</else>
</if>

<!-- Init Build -->
<target name="init" description="Init build" unless="src.isInit">
<!-- cleanup -->
Expand Down Expand Up @@ -326,23 +336,23 @@ External Dependencies:

<!-- copy over prd file -->
<copy file="brew-template.rb"
tofile="${artifact.dir}/commandbox.rb"
tofile="${dist.dir}/commandbox.rb"
overwrite="true"
encoding="UTF-8" />

<replace file="${artifact.dir}/commandbox.rb" value="" summary="yes" encoding="UTF-8">
<replace file="${dist.dir}/commandbox.rb" value="" summary="yes" encoding="UTF-8">
<replacetoken>@be@</replacetoken>
</replace>
<replace file="${artifact.dir}/commandbox.rb" value="${commandbox.version}" summary="yes" encoding="UTF-8">
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.version}" summary="yes" encoding="UTF-8">
<replacetoken>@version@</replacetoken>
</replace>
<replace file="${artifact.dir}/commandbox.rb" value="${ortus.repoPRDURL}" summary="yes" encoding="UTF-8">
<replace file="${dist.dir}/commandbox.rb" value="${ortus.repoPRDURL}" summary="yes" encoding="UTF-8">
<replacetoken>@repoURL@</replacetoken>
</replace>
<replace file="${artifact.dir}/commandbox.rb" value="${commandbox.sha1}" summary="yes" encoding="UTF-8">
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.sha1}" summary="yes" encoding="UTF-8">
<replacetoken>@sha1@</replacetoken>
</replace>
<replace file="${artifact.dir}/commandbox.rb" value="${commandbox.apidocs.sha1}" summary="yes" encoding="UTF-8">
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.apidocs.sha1}" summary="yes" encoding="UTF-8">
<replacetoken>@apidocs.sha1@</replacetoken>
</replace>

Expand Down Expand Up @@ -556,7 +566,28 @@ External Dependencies:
key="${ortus.sign.key.id}"
passphrase="${ortus.sign.key.passphrase}"
keyring="${ortus.sign.keyring}" />

<antcall target="build.cli.deb.stablerepo" />

<!-- Update stable Repo -->
<deb-repo dir="${deb.repo.stable}"
label="ortus" description="ortussolutions.com debian repository"
key="${ortus.sign.key.id}"
passphrase="${ortus.sign.key.passphrase}"
keyring="${ortus.sign.keyring}" />

</target>

<target name="build.cli.deb.stablerepo" if="${isStable}">
<echo>This is a stable build, let's update the stable Debian repo</echo>

<mkdir dir="${deb.repo.stable}"/>

<!-- Copy deb package to stable dist dir too -->
<copy file="${deb.repo}/${distro.name}_${commandbox.version}-1_all.deb" toFile="${deb.repo.stable}/${distro.name}_${commandbox.version}-1_all.deb"/>
<copy file="${deb.repo}/${distro.name}_${commandbox.version}-1_all.changes" toFile="${deb.repo.stable}/${distro.name}_${commandbox.version}-1_all.changes"/>

</target>

<!-- Build RPM: Leverages redline task -->
<target name="build.cli.rpm" depends="build.cli.bin">
Expand All @@ -578,7 +609,31 @@ External Dependencies:
<copy file="${rpm.repo}/${distro.name}-${commandbox.version}-1.noarch.rpm" tofile="${dist.dir}/${distro.name}-rpm-${commandbox.version}.rpm" />
<!-- Build Checksum -->
<checksum file="${dist.dir}/${distro.name}-rpm-${commandbox.version}.rpm" forceoverwrite="true" fileext=".md5" />

<antcall target="build.cli.rpm.stablerepo" />

<rpm-repo name="${distro.name}" baseurl="${commandbox.rpm.repourl.stable}" dir="${rpm.repo.stable}" failonerror="false"/>
</target>

<target name="build.cli.rpm.stablerepo" if="${isStable}">
<echo message="This is a stable build, let's update the stable RPM repo" />

<mkdir dir="${rpm.repo.stable}" />
<echo message="Making stable rpm in ${rpm.repo.stable} Packager:${commandbox.packager.name} ${commandbox.packager.email} Version: ${commandbox.version}" />
<!-- execute rpm -->
<property name="commandbox.rpm.repourl.stable" value="${ortus.repoURL}/RPMS-stable/noarch" />
<echo message="RPM repository location: ${commandbox.rpm.repourl.stable}" />
<rpm-create rpm.repo="${rpm.repo.stable}" rpm.release="1"
rpm.reponame="ortus" rpm.baseurl="${commandbox.rpm.repourl.stable}"
rpm.group="com.ortussolutions" rpm.name="${distro.name}" rpm.version="${commandbox.version}"
rpm.packager="${commandbox.packager.name} ${commandbox.packager.email}"
rpm.url="${commandbox.supportURL}" failonerror="false"
rpm.keyring="${ortus.sign.keyring}" rpm.key="${ortus.sign.key.id}"
rpm.passphrase="${ortus.sign.key.passphrase}">
<tarfileset file="${dist.dir}/box" prefix="/usr/bin" filemode="744" username="root" group="root"/>
</rpm-create>

</target>

<!-- ********************************************************************************************-->
<!-- DEPENDENCY TARGETS -->
Expand Down
1 change: 1 addition & 0 deletions src/cfml/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ component{
// Try to log this to LogBox
try {
application.wireBox.getLogBox().getRootLogger().error( '#exception.message# #exception.detail ?: ''#', exception.stackTrace );
application.wireBox.getInstance( 'interceptorService' ).announceInterception( 'onException', { exception=exception } );
// If it fails no worries, LogBox just probably isn't loaded yet.
} catch ( Any e ) {}

Expand Down
13 changes: 0 additions & 13 deletions src/cfml/commands/contentbox/theme/install.cfc

This file was deleted.

13 changes: 0 additions & 13 deletions src/cfml/commands/contentbox/widget/install.cfc

This file was deleted.

13 changes: 0 additions & 13 deletions src/cfml/commands/contentbox/widget/remove.cfc

This file was deleted.

11 changes: 0 additions & 11 deletions src/cfml/commands/namespace/help.cfc

This file was deleted.

15 changes: 0 additions & 15 deletions src/cfml/commands/namespace/install.cfc

This file was deleted.

23 changes: 0 additions & 23 deletions src/cfml/commands/namespace/list.cfc

This file was deleted.

15 changes: 0 additions & 15 deletions src/cfml/commands/namespace/remove.cfc

This file was deleted.

Loading

0 comments on commit 034eb68

Please sign in to comment.