Index: lams_tool_deploy/src/java/org/lamsfoundation/lams/tool/deploy/CreateToolPackageTask.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_deploy/src/java/org/lamsfoundation/lams/tool/deploy/CreateToolPackageTask.java,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_deploy/src/java/org/lamsfoundation/lams/tool/deploy/CreateToolPackageTask.java 1 Dec 2005 23:43:43 -0000 1.1 @@ -0,0 +1,114 @@ +/* +Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +USA + +http://www.gnu.org/licenses/gpl.txt +*/ + +/* + * Created on 30/11/2005 + */ +package org.lamsfoundation.lams.tool.deploy; + +import java.io.IOException; + +import javax.xml.parsers.ParserConfigurationException; + +import org.xml.sax.SAXException; + +/** + * @author Mailing Truong, Original design by Fiona Malikoff + * Creates a tool deployment package. Ant Task. + * Specifies the implementation for the Ant's Task execute() method. + * Other methods used are inherited from parent class CreatePackageTask + * + * Files created: deploy.xml + * + * A deploy.xml file is created. It is built from two sources - + * a configuration file supplied at runtime and ant task parameter. + * + * The DeployToolConfig object is created and if the configuration file is specified, + * then the configuration file is read and the + * DeployToolConfig object is updated. If the program is running as an ant task, + * the task parameters are checked and all task parameters except for mode and configFile are + * added to the DeployToolConfig object. So the customised properties can be set up in either + * a configuration file (handy if you aren't using ant) or in a mixture of a configuration file + * and build.xml. Finally, the DeployToolConfig object is written out to the deploy.xml file. + * + * Ant task parameters: + *