Difference between revisions of "ConfiguringAntBuildFiles"

From Protege Wiki
Jump to: navigation, search
(New page: = Using and Configuring Protege Ant Build Scripts = There is a standard format for the protege ant build scripts. The main idea behind these build scripts is that most of the dependencie...)
 
(Using and Configuring Protege Ant Build Scripts)
Line 4: Line 4:
  
 
So the simplest way of configuring the invocation of an ant build script is to set the PROTEGE_HOME environment variable.  The way that this is done is system dependent:
 
So the simplest way of configuring the invocation of an ant build script is to set the PROTEGE_HOME environment variable.  The way that this is done is system dependent:
* On unix systems from the command line use "export PROTEGE_HOME=/home/tredmond/Desktop/Protege".  This command can also be put in a .bashrc file.
+
* On unix systems from the command line use "export PROTEGE_HOME=/home/tredmond/Desktop/Protege".  This command can also be put in a .bashrc file. On the command line, unix systems also allow one to set a property for the duration of one command as follows<br>
 +
<pre>PROTEGE_HOME= /home/tredmond/Desktop/Protege" ant install</pre>
 +
</br>
 +
* OS x machines are unix machines so all the unix techniques apply.  However, in addition to this there is the<br>
 
* On windows systems, right click on MyComputer and select settings. Then find Environment Variables and click then locate PROTEGE_HOME, press edit and change to the path to protege.
 
* On windows systems, right click on MyComputer and select settings. Then find Environment Variables and click then locate PROTEGE_HOME, press edit and change to the path to protege.
 
* In eclipse follows [[CompileProtege4InEclipseOneProject#Setting_up_an_ant_build_script|these directions]] and then go to the environment settings page and add the environment setting.
 
* In eclipse follows [[CompileProtege4InEclipseOneProject#Setting_up_an_ant_build_script|these directions]] and then go to the environment settings page and add the environment setting.
  
 
more to come = local.properties and ant calls in an ant script.
 
more to come = local.properties and ant calls in an ant script.

Revision as of 12:24, March 7, 2009

Using and Configuring Protege Ant Build Scripts

There is a standard format for the protege ant build scripts. The main idea behind these build scripts is that most of the dependencies needed by a plugin project can be found inside a protege distribution. Therefore the build file uses the PROTEGE_HOME environment variable to point to a Protege distribution and find the dependencies from there. This removes the problems where users commit jar files from the protege distribution and have to keep updating them.

So the simplest way of configuring the invocation of an ant build script is to set the PROTEGE_HOME environment variable. The way that this is done is system dependent:

  • On unix systems from the command line use "export PROTEGE_HOME=/home/tredmond/Desktop/Protege". This command can also be put in a .bashrc file. On the command line, unix systems also allow one to set a property for the duration of one command as follows
PROTEGE_HOME= /home/tredmond/Desktop/Protege" ant install

</br>

  • OS x machines are unix machines so all the unix techniques apply. However, in addition to this there is the
  • On windows systems, right click on MyComputer and select settings. Then find Environment Variables and click then locate PROTEGE_HOME, press edit and change to the path to protege.
  • In eclipse follows these directions and then go to the environment settings page and add the environment setting.

more to come = local.properties and ant calls in an ant script.