Set of packages and scripts common to my projects developed using Wolfram Workbench.
- Tools "fixing" documentation:
- making it cross version compatible,
- fixing links in HTML version.
- Tools making source notebooks version control friendly:
- disabling notebook cache,
- disabling notebook cells history tracking,
- removing existing cell change times.
- Tools for running tests in multiple versions of mathematica.
- Tools enabling inclusion of running of tests into build/deploy scripts.
- Scripts simplifying customization of documentation building and package deployment.
-
Download repository archive.
-
In Eclipse choose:
File>Import.... -
Select:
General>Existing Projects into Workspace, clickNext >. -
Choose
Select archive fileandBrowse...for downloaded archive file. -
Make sure WWBCommon is selected in
Projectswindow and clickFinish.
To make files available to Ant scripts from all projects perform following steps.
-
In Eclipse choose:
Window>Preferences. -
Select
Ant>Runtime -
In
Propertiestab click onAdd property... -
Type in: Name:
WWBCommonPath, Value:${workspace_loc}/WWBCommon, clickOK. -
Click
Apply, thanOK.
-
Copy
examples/docbuild.xmlfile to root directory of your project (or any other location and point it in:Project>Properties>Mathematica>Paclet Settings>Documentation Build File). -
In copied
docbuild.xmlfile changeMySuperDuperMmaAppto name of your application. If you placeddocbuild.xmlsomewhere else than root of your project adaptbasedirattribute ofprojectelement.
-
Copy
examples/buildScriptsdirectory to root directory of your project. -
In copied
buildScripts/project.propertiesfile changeMySuperDuperMmaAppto name of your application. -
Change:
Project>Properties>Mathematica>Paclet Settings>Documentation Build Filesetting tobuildScripts/docbuild.xml.
-
Copy
examples/runTests.xmlfile to root directory of your project (or any other location in your project). -
In copied
runTests.xmlfile.- Change value of
WorkbenchMUnitPathproperty to path to MUnitsMathematicaSourceVersioneddirectory in your installation of Workbench (in some installations MUnit might be inside a jar file so you'll need to extract it first). Since this is a system-wide property it might be preferable to set it once, for all projects, in ant runtime configuration. - Value of
mathExecutablesproperty should be a comma separated list of paths to Mathematica executables in which you want to run tests. - Change value of
app.nameproperty to name of your application. - Value of
testFilesproperty should be a comma separated list of paths to test files or test suite files that you want to run. - If you placed
runTests.xmlsomewhere else than root of your project adaptbasedirattribute ofprojectelement.
- Change value of
If you find any bugs or have feature request please create an issue on GitHub.
Feel free to fork and send pull requests.
All contributions are welcome!
This project is released under GNU General Public License version 3.
Parts of code of this project are modifications of files from xTras package by Teake Nutma used under GNU General Public License version 3.
Parts of code of this project are a derivative of code written by Teake Nutma, Simon Rochester and Sebastian Schenk in Creating cross-version compatible documentation with Workbench thread on Mathematica Stack Exchange used under Creative Commons Attribution-ShareAlike 3.0 Unported License.