-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from Ortus-Solutions/development
merge dev into master
- Loading branch information
Showing
359 changed files
with
2,287 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,32 @@ | ||
require "formula" | ||
# Version update PR to Homebrew requires only the information below: | ||
class Commandbox < Formula | ||
desc "CFML embedded server, package manager, and app scaffolding tools" | ||
homepage "http://www.ortussolutions.com/products/commandbox" | ||
url "@repoURL@/ortussolutions/commandbox/@version@/commandbox-bin-@[email protected]" | ||
sha256 "@sha256@" | ||
homepage "https://www.ortussolutions.com/products/commandbox" | ||
url "@repoPRDURL@/ortussolutions/commandbox/@stable-version@/commandbox-bin-@[email protected]" | ||
sha256 "@stable-sha256@" | ||
version "@stable-version@" | ||
|
||
devel do | ||
url "@repoURL@/ortussolutions/commandbox/@version@/commandbox-bin-@[email protected]?build=@buildnumber@" | ||
sha256 "@sha256@" | ||
version "@version@" | ||
end | ||
|
||
bottle :unneeded | ||
|
||
depends_on :arch => :x86_64 | ||
depends_on :java => "1.7+" | ||
|
||
resource "apidocs" do | ||
url "@repoURL@/ortussolutions/commandbox/@version@/commandbox-apidocs-@[email protected]" | ||
sha256 "@apidocs.sha256@" | ||
url "@repoPRDURL@/ortussolutions/commandbox/@stable-version@/commandbox-apidocs-@stable-[email protected]" | ||
sha256 "@apidocs.stable-sha256@" | ||
end | ||
|
||
def install | ||
bin.install "box" | ||
doc.install resource("apidocs") | ||
end | ||
|
||
def caveats; <<-EOS.undent | ||
CommandBox is licensed as open source software under the GNU Lesser General Public License v3 | ||
License information at: | ||
http://www.gnu.org/licenses/lgpl-3.0.en.html | ||
For full CommandBox documentation visit: | ||
https://ortus.gitbooks.io/commandbox-documentation/ | ||
Source Code: | ||
https://github.com/Ortus-Solutions/commandbox | ||
EOS | ||
end | ||
|
||
test do | ||
system "box", "install" | ||
system "box", "--version" | ||
system "box", "--commandbox_home=~/", "version" | ||
system "box", "--commandbox_home=~/", "help" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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="3.2.0"/> | ||
<property name="commandbox.stableVersion" value="3.2.0"/> | ||
<property name="commandbox.version" value="3.3.0"/> | ||
<property name="commandbox.stableVersion" value="3.3.0"/> | ||
|
||
<!-- Time Label --> | ||
<tstamp prefix="start"/> | ||
|
@@ -266,6 +266,7 @@ External Dependencies: | |
<!-- Build Checksum for cfml.zip --> | ||
<checksum file="${dist.dir}/${distro.name}-cfml-${commandbox.version}.zip" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/${distro.name}-cfml-${commandbox.version}.zip" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/${distro.name}-cfml-${commandbox.version}.zip" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
|
||
<!-- create the libs zip including cli loader, optionally use pack200 --> | ||
<antcontrib:if> | ||
|
@@ -324,6 +325,7 @@ External Dependencies: | |
<!-- Checksum on Jar --> | ||
<checksum file="${dist.dir}/box.jar" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/box.jar" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/box.jar" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
|
||
<!-- Create box-repo.json --> | ||
<box-repo location="${artifact.dir}" | ||
|
@@ -352,54 +354,125 @@ External Dependencies: | |
|
||
<!-- Build Homebrew Recipe --> | ||
<target name="build.homebrew" description="Builds the Homebrew Recipe" depends=""> | ||
<property name="tapRepo" value="[email protected]:Ortus-Solutions/homebrew-boxtap.git"/> | ||
|
||
<!-- Check sum properties --> | ||
<!-- Grab the checksum again for our build files --> | ||
<checksum file="${dist.dir}/${distro.name}-bin-${commandbox.version}.zip" property="commandbox.sha256" algorithm="SHA-256"/> | ||
<checksum file="${dist.dir}/${distro.name}-apidocs-${commandbox.version}.zip" property="commandbox.apidocs.sha256" algorithm="SHA-256"/> | ||
|
||
<!-- Retrieve our stable version checksums --> | ||
<loadresource property="commandbox.stablesha256"> | ||
<file file="${artifact.baseDir}/${distro.groupID}/${distro.name}/${commandbox.stableVersion}/commandbox-bin-${commandbox.stableVersion}.zip.sha256"/> | ||
<filterchain> | ||
<striplinebreaks/> | ||
<trim/> | ||
</filterchain> | ||
</loadresource> | ||
|
||
<loadresource property="commandbox.apidocs.stablesha256"> | ||
<file file="${artifact.baseDir}/${distro.groupID}/${distro.name}/${commandbox.stableVersion}/commandbox-apidocs-${commandbox.stableVersion}.zip.sha256"/> | ||
<filterchain> | ||
<striplinebreaks/> | ||
<trim/> | ||
</filterchain> | ||
</loadresource> | ||
|
||
<!-- copy over prd file --> | ||
<copy file="brew-template.rb" | ||
tofile="${dist.dir}/commandbox.rb" | ||
overwrite="true" | ||
encoding="UTF-8" /> | ||
encoding="UTF-8" /> | ||
|
||
<replace file="${dist.dir}/commandbox.rb" value="" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@be@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.stableVersion}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@stable-version@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.stablesha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@stable-sha256@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.version}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@version@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${ortus.repoPRDURL}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@repoPRDURL@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${ortus.repoURL}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@repoURL@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.sha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@sha256@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.apidocs.sha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@apidocs.sha256@</replacetoken> | ||
<replace file="${dist.dir}/commandbox.rb" value="${commandbox.apidocs.stablesha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@apidocs.stable-sha256@</replacetoken> | ||
</replace> | ||
<replace file="${dist.dir}/commandbox.rb" value="${build.number}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@buildnumber@</replacetoken> | ||
</replace> | ||
|
||
<!-- copy over be file --> | ||
<copy file="brew-template.rb" | ||
tofile="${artifact.dir}/commandbox-be.rb" | ||
<!-- Pull and Commit Our Tap Repo --> | ||
<macrodef name="git"> | ||
<attribute name="command" /> | ||
<attribute name="dir" default="${dist.dir}" /> | ||
<element name="args" optional="true" /> | ||
<sequential> | ||
<echo message="git @{command}" /> | ||
<exec executable="sudo" dir="@{dir}" failonerror="true"> | ||
<arg value="git" /> | ||
<arg value="@{command}" /> | ||
<args/> | ||
</exec> | ||
</sequential> | ||
</macrodef> | ||
|
||
<git command="clone"> | ||
<args> | ||
<arg value="${tapRepo}"/> | ||
</args> | ||
</git> | ||
|
||
<!-- Ensure write perms --> | ||
<exec executable="sudo" dir="${dist.dir}" failonerror="true"> | ||
<arg value="chmod" /> | ||
<arg value="-R" /> | ||
<arg value="777" /> | ||
<arg value="./homebrew-boxtap" /> | ||
</exec> | ||
|
||
<copy file="${dist.dir}/commandbox.rb" | ||
tofile="${dist.dir}/homebrew-boxtap/commandbox.rb" | ||
overwrite="true" | ||
encoding="UTF-8" /> | ||
|
||
<replace file="${artifact.dir}/commandbox-be.rb" value="Be" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@be@</replacetoken> | ||
</replace> | ||
<replace file="${artifact.dir}/commandbox-be.rb" value="${commandbox.version}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@version@</replacetoken> | ||
</replace> | ||
<replace file="${artifact.dir}/commandbox-be.rb" value="${ortus.repoURL}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@repoURL@</replacetoken> | ||
</replace> | ||
<replace file="${artifact.dir}/commandbox-be.rb" value="${commandbox.sha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@sha256@</replacetoken> | ||
</replace> | ||
<replace file="${artifact.dir}/commandbox-be.rb" value="${commandbox.apidocs.sha256}" summary="yes" encoding="UTF-8"> | ||
<replacetoken>@apidocs.sha256@</replacetoken> | ||
</replace> | ||
<property name="commit-message" value="CommandBox Build #${build.number}: Release @ ${commandbox.stableVersion}/Devel @ ${commandbox.version}"/> | ||
|
||
<git command="add" dir="${dist.dir}/homebrew-boxtap"> | ||
<args> | ||
<arg value="--all"/> | ||
</args> | ||
</git> | ||
|
||
|
||
<git command="commit" dir="${dist.dir}/homebrew-boxtap"> | ||
<args> | ||
<arg value="--allow-empty"/> | ||
<arg value="-m ${commit-message}" /> | ||
</args> | ||
</git> | ||
|
||
|
||
<git command="push" dir="${dist.dir}/homebrew-boxtap" /> | ||
|
||
<!-- Ensure perms allow us to delete since GIT is runing as sudo-er --> | ||
<exec executable="sudo" dir="${dist.dir}" failonerror="true"> | ||
<arg value="chmod" /> | ||
<arg value="-R" /> | ||
<arg value="777" /> | ||
<arg value="./homebrew-boxtap" /> | ||
</exec> | ||
|
||
<delete dir="${dist.dir}/homebrew-boxtap"/> | ||
|
||
</target> | ||
|
||
|
@@ -431,6 +504,7 @@ External Dependencies: | |
<!-- Build Checksum --> | ||
<checksum forceoverwrite="true" fileext=".md5" file="${dist.dir}/${distro.name}-apidocs-${commandbox.version}.zip" /> | ||
<checksum forceoverwrite="true" algorithm="sha" file="${dist.dir}/${distro.name}-apidocs-${commandbox.version}.zip" /> | ||
<checksum forceoverwrite="true" file="${dist.dir}/${distro.name}-apidocs-${commandbox.version}.zip" algorithm="SHA-256" fileext=".sha256"/> | ||
|
||
<!-- Wipe & recreate for core API docs --> | ||
<delete dir="${temp.dir}/apidocs" /> | ||
|
@@ -446,6 +520,7 @@ External Dependencies: | |
<!-- Build Checksum --> | ||
<checksum forceoverwrite="true" fileext=".md5" file="${dist.dir}/${distro.name}-core-apidocs-${commandbox.version}.zip" /> | ||
<checksum forceoverwrite="true" algorithm="sha" file="${dist.dir}/${distro.name}-core-apidocs-${commandbox.version}.zip" /> | ||
<checksum forceoverwrite="true" file="${dist.dir}/${distro.name}-core-apidocs-${commandbox.version}.zip" algorithm="SHA-256" fileext=".sha256"/> | ||
|
||
<!-- stop server --> | ||
<exec executable="${dist.dir}/box" dir="${dir.apidocs}"> | ||
|
@@ -479,8 +554,10 @@ External Dependencies: | |
<!-- Build Checksum --> | ||
<checksum file="${dist.dir}/${distro.name}-bin-${commandbox.version}.zip" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/${distro.name}-bin-${commandbox.version}.zip" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/${distro.name}-bin-${commandbox.version}.zip" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
<checksum file="${dist.dir}/${distro.name}-sdk-bin-${commandbox.version}.zip" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/${distro.name}-sdk-bin-${commandbox.version}.zip" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/${distro.name}-sdk-bin-${commandbox.version}.zip" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
</target> | ||
|
||
<!-- Build windows executable --> | ||
|
@@ -522,6 +599,7 @@ External Dependencies: | |
<!-- Build Checksum --> | ||
<checksum file="${dist.dir}/${distro.name}-win-${commandbox.version}.zip" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/${distro.name}-win-${commandbox.version}.zip" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/${distro.name}-win-${commandbox.version}.zip" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
</target> | ||
|
||
<!-- Build including JREs --> | ||
|
@@ -568,6 +646,11 @@ External Dependencies: | |
<include name="*-jre-*.zip" /> | ||
</fileset> | ||
</checksum> | ||
<checksum forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"> | ||
<fileset dir="${dist.dir}"> | ||
<include name="*-jre-*.zip" /> | ||
</fileset> | ||
</checksum> | ||
</target> | ||
|
||
<!-- Build local maven repository build.cli.deb,build.cli.exe,build.cli.rpm--> | ||
|
@@ -613,6 +696,7 @@ External Dependencies: | |
<!-- Build Checksum --> | ||
<checksum file="${dist.dir}/${distro.name}-debian-${commandbox.version}.deb" forceoverwrite="true" fileext=".md5" /> | ||
<checksum file="${dist.dir}/${distro.name}-debian-${commandbox.version}.deb" forceoverwrite="true" algorithm="sha" /> | ||
<checksum file="${dist.dir}/${distro.name}-debian-${commandbox.version}.deb" forceoverwrite="true" algorithm="SHA-256" fileext=".sha256"/> | ||
<echo message="Updating apt (deb) repo in ${deb.repo}"/> | ||
<!-- Update Repo --> | ||
<deb-repo dir="${deb.repo}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name":"CommandBox System Core", | ||
"version":"@build.version@[email protected]@", | ||
"author":"Brad Wood", | ||
"shortDescription":"This tracks the CommandBox core dependencies", | ||
"dependencies":{ | ||
"string-similarity":"^1.0.0", | ||
"semver":"^1.0.0", | ||
"globber":"^1.0.0" | ||
}, | ||
"devDependencies":{ | ||
|
||
}, | ||
"installPaths":{ | ||
"string-similarity":"modules\\string-similarity", | ||
"semver":"modules\\semver", | ||
"globber":"modules\\globber" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/cfml/system/modules/coldbox-commands/commands/coldbox/compile.cfc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.