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 file
andBrowse...
for downloaded archive file. -
Make sure WWBCommon is selected in
Projects
window and clickFinish
.
To make files available to Ant scripts from all projects perform following steps.
-
In Eclipse choose:
Window
>Preferences
. -
Select
Ant
>Runtime
-
In
Properties
tab click onAdd property...
-
Type in: Name:
WWBCommonPath
, Value:${workspace_loc}/WWBCommon
, clickOK
. -
Click
Apply
, thanOK
.
-
Copy
examples/docbuild.xml
file 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.xml
file changeMySuperDuperMmaApp
to name of your application. If you placeddocbuild.xml
somewhere else than root of your project adaptbasedir
attribute ofproject
element.
-
Copy
examples/buildScripts
directory to root directory of your project. -
In copied
buildScripts/project.properties
file changeMySuperDuperMmaApp
to name of your application. -
Change:
Project
>Properties
>Mathematica
>Paclet Settings
>Documentation Build File
setting tobuildScripts/docbuild.xml
.
-
Copy
examples/runTests.xml
file to root directory of your project (or any other location in your project). -
In copied
runTests.xml
file.- Change value of
WorkbenchMUnitPath
property to path to MUnitsMathematicaSourceVersioned
directory 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
mathExecutables
property should be a comma separated list of paths to Mathematica executables in which you want to run tests. - Change value of
app.name
property to name of your application. - Value of
testFiles
property should be a comma separated list of paths to test files or test suite files that you want to run. - If you placed
runTests.xml
somewhere else than root of your project adaptbasedir
attribute ofproject
element.
- 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.