Permalink
Browse files

MAINTENANCE: Modified the build process so that the community edition is

now built completely separately from the enterprise edition.
  • Loading branch information...
1 parent c640a8f commit ccfee223a4320ccf4898349265fa9fde253edcda Adrian Sutton committed Sep 3, 2010
Showing with 509 additions and 3,688 deletions.
  1. +504 −546 LICENSE.TXT
  2. +0 −2 build-utils/.gitignore
  3. +0 −70 build-utils/build-utils.xml
  4. +0 −29 build-utils/ivy/configurations.xml
  5. +0 −12 build-utils/ivy/id_dsa
  6. +0 −1 build-utils/ivy/id_dsa.pub
  7. +0 −11 build-utils/ivy/ivy-ephox-repositories.xml
  8. +0 −5 build-utils/ivy/ivy-ephox-statuses.xml
  9. +0 −10 build-utils/ivy/ivy-import-settings.xml
  10. +0 −61 build-utils/ivy/ivy-macros.xml
  11. +0 −9 build-utils/ivy/ivy-settings.xml
  12. BIN build-utils/ivy/lib/commons-codec-1.2.jar
  13. BIN build-utils/ivy/lib/commons-httpclient-3.0.jar
  14. BIN build-utils/ivy/lib/commons-logging-1.0.4.jar
  15. BIN build-utils/ivy/lib/commons-vfs-1.0.jar
  16. BIN build-utils/ivy/lib/ivy-2.1.0.jar
  17. BIN build-utils/ivy/lib/jsch-0.1.31.jar
  18. BIN build-utils/ivy/lib/oro-2.0.8.jar
  19. +0 −87 build-utils/plugin-build.xml
  20. BIN build-utils/tools/ant/ant-contrib.jar
  21. BIN build-utils/tools/ant/js_build_tools.jar
  22. BIN build-utils/tools/ant/yuicompressor.jar
  23. +0 −656 build-utils/tools/templates/class.xsl
  24. +0 −235 build-utils/tools/templates/css/general.css
  25. +0 −467 build-utils/tools/templates/css/grids.css
  26. +0 −75 build-utils/tools/templates/css/jquery.treeview.css
  27. +0 −142 build-utils/tools/templates/css/reset.css
  28. +0 −342 build-utils/tools/templates/css/shCore.css
  29. +0 −191 build-utils/tools/templates/css/shThemeMoxieDoc.css
  30. BIN build-utils/tools/templates/img/class.gif
  31. BIN build-utils/tools/templates/img/event.gif
  32. BIN build-utils/tools/templates/img/help.png
  33. BIN build-utils/tools/templates/img/inherit-arrow.gif
  34. BIN build-utils/tools/templates/img/inherited.gif
  35. BIN build-utils/tools/templates/img/loader.gif
  36. BIN build-utils/tools/templates/img/magnifier.png
  37. BIN build-utils/tools/templates/img/method.gif
  38. BIN build-utils/tools/templates/img/namespace.gif
  39. BIN build-utils/tools/templates/img/page_white_code.png
  40. BIN build-utils/tools/templates/img/page_white_copy.png
  41. BIN build-utils/tools/templates/img/printer.png
  42. BIN build-utils/tools/templates/img/property.gif
  43. BIN build-utils/tools/templates/img/root.gif
  44. BIN build-utils/tools/templates/img/static.gif
  45. BIN build-utils/tools/templates/img/treeview-famfamfam.gif
  46. BIN build-utils/tools/templates/img/wrapping.png
  47. +0 −121 build-utils/tools/templates/index.xsl
  48. BIN build-utils/tools/templates/js/clipboard.swf
  49. +0 −102 build-utils/tools/templates/js/general.js
  50. +0 −15 build-utils/tools/templates/js/jquery.treeview.min.js
  51. +0 −52 build-utils/tools/templates/js/shBrushJScript.js
  52. +0 −30 build-utils/tools/templates/js/shCore.js
  53. +0 −310 build-utils/tools/templates/member.xsl
  54. +5 −12 build.xml
  55. +0 −76 enterprisetinymce.xml
  56. +0 −19 ivy.xml
View
1,050 LICENSE.TXT

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,2 +0,0 @@
-filename
-.project
@@ -1,70 +0,0 @@
-<?xml version="1.0" ?>
-<project name="build-utils">
- <dirname property="build-utils.dir" file="${ant.file.build-utils}" />
-
- <import file="${build-utils.dir}/ivy/ivy-macros.xml" />
-
- <macrodef name="getArtifactName">
- <attribute name="artifactUrl"
- description="The URL to retrieve the name from." />
-
- <attribute name="username" default="${username}"
- description="The username to login with." />
-
- <attribute name="password" default="${password}"
- description="The password to login with." />
-
- <attribute name="property" description="The property to put the artifact name into." />
-
- <sequential>
- <get dest="${build-utils.dir}/filename" usetimestamp="true"
- src="@{artifactUrl}" username="@{username}" password="@{password}" />
- <loadfile property="@{property}" srcfile="${build-utils.dir}/filename" />
- </sequential>
- </macrodef>
-
- <macrodef name="getArtifact" description="Retrieves an artifact from a Hudson build.">
- <attribute name="dest" description="The file or directory to store the artifact in. If this is a directory, the original artifact name will be used." />
-
- <attribute name="buildUrl"
- description="The URL to the build to get the artifact name from." />
-
- <attribute name="partialName"
- description="Part of the artifact name to retrieve. This allows selecting a particular artifact from a build that produces multiple things." />
-
- <attribute name="artifactUrl" default="@{buildUrl}/api/xml?xpath=/*/artifact/relativePath[contains(text(),'@{partialName}')]/text()"
- description="The exact URL to retrieve the name from. Normally calculated from the URL and partial name" />
-
- <attribute name="username" default="${username}"
- description="The username to login with." />
-
- <attribute name="password" default="${password}"
- description="The password to login with." />
-
- <sequential>
- <getArtifactName property="build-utils.artifactName" artifacturl="@{artifactUrl}" username="@{username}" password="@{password}" />
- <get dest="@{dest}" usetimestamp="true"
- src="@{buildUrl}/artifact/${build-utils.artifactName}"
- username="${username}" password="${password}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="getBuildInfo" description="Retrieves the XML build information from Hudson.">
- <attribute name="dest" description="The file to store the build details in." />
-
- <attribute name="buildUrl"
- description="The URL to the build to get the details for." />
-
- <attribute name="username" default="${username}"
- description="The username to login with." />
-
- <attribute name="password" default="${password}"
- description="The password to login with." />
-
- <sequential>
- <get dest="@{dest}" usetimestamp="true"
- src="@{buildUrl}/api/xml"
- username="${username}" password="${password}"/>
- </sequential>
- </macrodef>
-</project>
@@ -1,29 +0,0 @@
-<configurations defaultconfmapping="compile->default">
- <!--
- Summary of Configs
- The artifacts from this project go in master.
- When compiling the main source, the compile and provided libraries will be used.
- When this module is used as a dependency, the master, the runtime and compile libraries will be used (but not the provided libraries).
- When compiling and running tests, the master, test, runtime, compile and provided libraries will be used.
-
- Adding a dependency without specifying what config it will be used in will add it to the compile config and use the dependency's default config.
- -->
- <conf name="default" visibility="public" extends="compile,master"
- description="runtime dependencies and master artifact can be used with this conf"/>
-
- <conf name="master" visibility="public"
- description="contains only the artifact published by this module itself, with no transitive dependencies"/>
-
- <conf name="plugins" visibility="public"
- description="Contains the plugins that will be included in a TinyMCE distriubtion." />
-
- <conf name="compile" visibility="public"
- description="this is the default scope, used if none is specified. Compile dependencies are available in all classpaths."/>
-
- <conf name="test" visibility="private" extends="compile"
- description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
-
- <conf name="sources" visibility="public"
- description="this configuration contains the source artifact of this module, if any."/>
-
-</configurations>
View
@@ -1,12 +0,0 @@
------BEGIN DSA PRIVATE KEY-----
-MIIBvQIBAAKBgQD/M8cngafQGxxQkxy1Hc6y5pZSJZHof07d4Mlu4+S//8/dYt0h
-j3HCYW9CS73ablvsQAZOK6B9jNkaZz0hUfUS3xRi87xKazMaTURnLUcktVc5Db7/
-EVx5ZibOCqVIIh22ky1bybpFXLrecQoLwPBIg5L5zVlm1ryJlTRcI/L2zQIVALUi
-i9xj+t/YY3wmS1htSYzppKx1AoGBAOuQQsxsGibO6XQlVHxsbqE1CNpix4cKp4KL
-A2iKvq/f1FlQID7Y2t1Pk2V5w90kQXeeL3OhkftuQscJ+QheUIixBdl6fX2NZI9s
-xjpD2b9d7e4AyrzHxn3B3CEjmfoozc7+g8aPZgPBiT6DpMrM2inlPKgp8tkpRtrW
-5wM/zKkoAoGBAJxJ9ysqOsufid5jfep7ccdJMSWqWM3dgESwZhfs+kIEBnB8voqj
-E1dYhYJEwDpswVBmmhAu/HpaCOkyeIui7pIRL9zdUcgsJIMgUhOkXoegUYY9ZwGT
-hE2ZhVFtupH30g1UWrsD9hQGNmORqf4hfDN/+xJzA5ceS1AEsvdyPPL/AhUAkHHn
-3E5lCEPqK/KEU0btAoRe+sE=
------END DSA PRIVATE KEY-----
@@ -1 +0,0 @@
-ssh-dss AAAAB3NzaC1kc3MAAACBAP8zxyeBp9AbHFCTHLUdzrLmllIlkeh/Tt3gyW7j5L//z91i3SGPccJhb0JLvdpuW+xABk4roH2M2RpnPSFR9RLfFGLzvEprMxpNRGctRyS1VzkNvv8RXHlmJs4KpUgiHbaTLVvJukVcut5xCgvA8EiDkvnNWWbWvImVNFwj8vbNAAAAFQC1IovcY/rf2GN8JktYbUmM6aSsdQAAAIEA65BCzGwaJs7pdCVUfGxuoTUI2mLHhwqngosDaIq+r9/UWVAgPtja3U+TZXnD3SRBd54vc6GR+25Cxwn5CF5QiLEF2Xp9fY1kj2zGOkPZv13t7gDKvMfGfcHcISOZ+ijNzv6Dxo9mA8GJPoOkyszaKeU8qCny2SlG2tbnAz/MqSgAAACBAJxJ9ysqOsufid5jfep7ccdJMSWqWM3dgESwZhfs+kIEBnB8voqjE1dYhYJEwDpswVBmmhAu/HpaCOkyeIui7pIRL9zdUcgsJIMgUhOkXoegUYY9ZwGThE2ZhVFtupH30g1UWrsD9hQGNmORqf4hfDN/+xJzA5ceS1AEsvdyPPL/ ivy@domU-12-31-39-00-B0-73
@@ -1,11 +0,0 @@
-<resolvers>
- <sftp name="public" user="ivy" keyFile="${ivy-macros.dir}/id_dsa" host="hudson.dev.ephox.com">
- <ivy pattern="/home/ivy/ivyrepo/public/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
- <artifact pattern="/home/ivy/ivyrepo/public/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
- </sftp>
-
- <sftp name="shared" user="ivy" keyFile="${ivy-macros.dir}/id_dsa" host="hudson.dev.ephox.com">
- <ivy pattern="/home/ivy/ivyrepo/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
- <artifact pattern="/home/ivy/ivyrepo/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
- </sftp>
-</resolvers>
@@ -1,5 +0,0 @@
-<statuses default="integration">
- <status name="release" integration="no" />
- <status name="integration" integration="yes" />
- <status name="untested" integration="yes" />
-</statuses>
@@ -1,10 +0,0 @@
-<ivysettings>
- <!-- These settings are used only when installing libraries from the maven repository to our 'public' repository. -->
- <settings defaultCache="${ivy.cache.dir}/no-namespace"
- defaultResolver="maven"
- defaultConflictManager="all" /> <!-- in order to get all revisions without any eviction -->
- <resolvers>
- <ibiblio name="maven" m2compatible="true" />
- </resolvers>
- <include file="${ivy.settings.dir}/ivy-ephox-repositories.xml" />
-</ivysettings>
@@ -1,61 +0,0 @@
-<project name="ivy-macros" xmlns:ivy="antlib:org.apache.ivy.ant">
- <dirname property="ivy-macros.dir" file="${ant.file.ivy-macros}" />
-
- <!-- Note that we use the Ant 1.5 taskdef method of loading the ivy tasks instead of the Ant 1.6 ones.
- This avoids the need to put the ivy jars in the ant lib directory. -->
- <path id="ivy-classpath">
- <fileset dir="${ivy-macros.dir}/lib" />
- </path>
-
- <echo message="Setting up ivy tasks." />
- <taskdef resource="org/apache/ivy/ant/antlib.xml"
- uri="antlib:org.apache.ivy.ant" classpathref="ivy-classpath"/>
-
- <ivy:configure file="${ivy-macros.dir}/ivy-settings.xml" />
-
- <target name="ivy-install" description="Install libraries from the Maven repository to Ephox public.">
- <ivy:settings id="install.settings" file="${ivy-macros.dir}/ivy-import-settings.xml" />
- <property name="transitive" value="true" />
- <input addproperty="install.organisation" message="Organisation?" />
- <input addproperty="install.module" message="Module?" />
- <input addproperty="install.revision" message="Revision?" />
- <ivy:install from="maven" to="public" validate="true" overwrite="false" transitive="${transitive}" settingsref="install.settings"
- organisation="${install.organisation}" module="${install.module}" revision="${install.revision}" />
- </target>
-
- <target name="dependency-report" description="Create a report of project dependencies.">
- <ivy:resolve />
- <ivy:report todir="${scratch}/reports/dependencies/"/>
- </target>
-
- <macrodef name="publish" description="Publish the artifacts to the Ivy repository. Type is either local, integration or release.">
- <attribute name="type" />
- <attribute name="version" />
- <attribute name="artifactDir" />
- <attribute name="artifactPattern" default="[artifact].[ext]" />
- <attribute name="overwrite" default="false" description="Whether or not to overwrite if the revision already exists." />
-
- <sequential>
- <condition property="ivy.publish.repository" value="local" else="shared">
- <equals arg1="@{type}" arg2="local" />
- </condition>
- <condition property="ivy.publish.status" value="integration" else="@{type}">
- <equals arg1="@{type}" arg2="local" />
- </condition>
- <ivy:resolve />
- <ivy:publish artifactspattern="@{artifactDir}/@{artifactPattern}" resolver="${ivy.publish.repository}" status="${ivy.publish.status}" pubrevision="@{version}" forcedeliver="true" overwrite="@{overwrite}" />
- </sequential>
- </macrodef>
-
- <macrodef name="dependencies" description="Retrieve dependencies from the Ivy repository.">
- <attribute name="dest" description="Where to put the retrieved artifacts" />
- <attribute name="configuration" default="*" description="Retrieve dependencies in a specific configuration only (Optional)." />
- <attribute name="type" default="*" description="Retrieve only a specific type of artifact (Optional)." />
- <attribute name="pattern" default="[artifact]_[revision].[ext]" description="The pattern to use when naming artifacts (Optional)." />
-
- <sequential>
- <ivy:resolve />
- <ivy:retrieve pattern="@{dest}/@{pattern}" sync="true" symlink="true" type="@{type}" conf="@{configuration}" />
- </sequential>
- </macrodef>
-</project>
@@ -1,9 +0,0 @@
-<ivysettings>
- <settings defaultResolver="default"/>
- <include file="${ivy.settings.dir}/ivy-ephox-repositories.xml" />
- <include file="${ivy.settings.dir}/ivy-ephox-statuses.xml" />
-
- <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
- <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
- <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
-</ivysettings>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,87 +0,0 @@
-<?xml version="1.0"?>
-<project name="plugin-build" xmlns:ivy="antlib:org.apache.ivy.ant">
- <dirname property="plugin-build.dir" file="${ant.file.plugin-build}" />
-
- <property file="project.properties" />
-
- <import file="${plugin-build.dir}/build-utils.xml" />
-
- <property name="tmp-dir" location="tmp" />
- <property name="src-dir" location="plugins/${ant.project.name}" />
- <property name="plugin-src" value="${src-dir}/editor_plugin_src.js" />
- <property name="plugin-minified" value="${src-dir}/editor_plugin.js" />
- <property name="dist-file" value="${tmp-dir}/${ant.project.name}.zip" />
-
- <property environment="env" />
- <property description="Ephox Build Number" name="ephox-build-number" value="${env.BUILD_NUMBER}" />
-
- <!-- Setup classpath for js-build-tools ant tasks -->
- <path id="build-utils.tasks.classpath">
- <pathelement location="."/>
-
- <fileset dir="${plugin-build.dir}/tools/ant">
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <fileset id="dist-files" dir="plugins" excludes="**/filelist" />
-
- <!-- Register new js-build-tools ant tasks -->
- <taskdef name="yuicompress" classname="com.moxiecode.ant.tasks.YuiCompressTask" classpathref="build-utils.tasks.classpath" loaderref="tasks.classpath.loader" />
-
- <target name="clean">
- <delete file="${plugin-src}" />
- <delete file="${plugin-minified}" />
- <delete dir="${tmp-dir}" />
- </target>
-
- <target name="concatenate-file-list">
- <loadfile property="concatenate-file-list" srcfile="${src-dir}/filelist">
- <filterchain>
- <tokenfilter delimOutput="," />
- </filterchain>
- </loadfile>
- <echo message="Concatenating files in order: ${concatenate-file-list}" />
- </target>
-
- <target name="concatenate" depends="concatenate-file-list">
- <concat destfile="${plugin-src}" eol="dos" fixlastline="true" encoding="UTF-8" outputencoding="UTF-8">
- <header trimleading="true">(function() {</header>
-
- <filelist dir="${src-dir}" files="${concatenate-file-list}" />
-
- <footer trimleading="true">})();</footer>
- </concat>
- </target>
-
- <target name="minify" depends="concatenate">
- <yuicompress infile="${plugin-src}" outfile="${plugin-minified}" />
- </target>
-
- <target name="tinymce" unless="offline">
- <mkdir dir="${tmp-dir}" />
- <dependencies dest="${tmp-dir}" pattern="[artifact].[ext]" type="zip" configuration="compile" />
- <unzip dest="${tmp-dir}" src="${tmp-dir}/enterprisetinymce.zip" />
- </target>
-
- <target name="build" depends="minify, tinymce">
- <copy todir="${tmp-dir}/${artifact-directory-name}/jscripts/tiny_mce/plugins/">
- <fileset refid="dist-files" />
- </copy>
- </target>
-
- <target name="zip" depends="minify">
- <mkdir dir="${tmp-dir}" />
- <zip destfile="${dist-file}">
- <fileset refid="dist-files" />
- </zip>
- </target>
-
- <target name="dist" depends="zip">
- <publish artifactDir="${tmp-dir}" type="untested" version="${ephox-build-number}" />
- </target>
-
- <target name="release" depends="dist">
- <publish artifactDir="${tmp-dir}" type="release" version="${ephox-build-number}" />
- </target>
-</project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit ccfee22

Please sign in to comment.