001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id: Mdl2JJOneTask.java 5941 2007-03-13 15:23:20Z elu $
023: */
024: package com.bostechcorp.cbesb.tools.ant;
025:
026: import java.io.File;
027:
028: import org.apache.tools.ant.BuildException;
029: import org.apache.tools.ant.Task;
030:
031: import com.bostechcorp.cbesb.common.mdl.fsmparser.Mdl2Fsm;
032: import com.bostechcorp.cbesb.common.util.project.ProjectUtil;
033:
034: /**
035: * @author elu
036: *
037: */
038: public class Mdl2JJOneTask extends Task {
039: // static public String DEFAULT_FSM_PACKAGE_NAME="com.bostechcorp.cbesb.fsmparser";
040: //
041: // private String rootDir;
042: // private String mdlFile;
043: // private String destDir;
044: // private String jjFile;
045: // private String projName;
046: //
047: //
048: //
049: // /**
050: // * @return the projName
051: // */
052: // public String getProjName() {
053: // return projName;
054: // }
055: //
056: // /**
057: // * @param projName the projName to set
058: // */
059: // public void setProjName(String projName) {
060: // this.projName = projName;
061: // }
062: //
063: // /**
064: // * @return the rootDir
065: // */
066: // public String getRootDir() {
067: // return rootDir;
068: // }
069: //
070: // /**
071: // * @param rootDir the rootDir to set
072: // */
073: // public void setRootDir(String rootDir) {
074: // this.rootDir = rootDir;
075: // }
076: //
077: // /**
078: // *
079: // */
080: // public Mdl2JJOneTask() {
081: //
082: // }
083: //
084: // /**
085: // * execute the task
086: // *
087: // * @throws BuildException
088: // */
089: // public void execute() {
090: // try{
091: // File file = new File(rootDir, mdlFile);
092: // TaggedFileList tfl= new TaggedFileList(null);
093: // tfl.setRootDir(rootDir);
094: // String zipFile=null;
095: // if(file.getAbsolutePath().indexOf(File.separatorChar+"src"+File.separatorChar+
096: // "formats"+File.separatorChar+"x12")>-1){
097: // zipFile=ProjectUtil.getX12ZipPathForUI(projName);
098: // }
099: // Mdl2Fsm.mdl2JJ(file, DEFAULT_FSM_PACKAGE_NAME + tfl.extraJavaPackageName(projName, file), destDir,zipFile);
100: //
101: // }
102: // catch(Exception ex) {
103: // ex.printStackTrace();
104: // }
105: // }
106: //
107: // /**
108: // * @return the destDir
109: // */
110: // public String getDestDir() {
111: // return destDir;
112: // }
113: //
114: // /**
115: // * @param destDir the destDir to set
116: // */
117: // public void setDestDir(String destDir) {
118: // this.destDir = destDir;
119: // }
120: //
121: // /**
122: // * @return the jjFile
123: // */
124: // public String getJjFile() {
125: // return jjFile;
126: // }
127: //
128: // /**
129: // * @param jjFile the jjFile to set
130: // */
131: // public void setJjFile(String jjFile) {
132: // this.jjFile = jjFile;
133: // }
134: //
135: // /**
136: // * @return the mdlFile
137: // */
138: // public String getMdlFile() {
139: // return mdlFile;
140: // }
141: //
142: // /**
143: // * @param mdlFile the mdlFile to set
144: // */
145: // public void setMdlFile(String mdlFile) {
146: // this.mdlFile = mdlFile;
147: // }
148: }
|