/*
* JFolder, Copyright 2001-2006 Gary Steinmetz
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jfolder.workflow.lifecycle;
//base classes
import java.io.File;
//project specific classes
import org.jfolder.common.utils.misc.MiscHelper;
import org.jfolder.project.model.ProjectScript;
//other classes
/*public class GenericFileProjectScript implements ProjectScript {
private File file = null;
private String name = null;
private String content = null;
protected GenericFileProjectScript(File inFile, String inName) {
this.file = inFile;
this.name = inName;
if (!this.file.exists()) {
this.content = "";
}
else {
this.content = MiscHelper.readTextFile(this.file);
}
//MiscHelper.println("inFile = " + inFile.getAbsolutePath());
}
public String getName() {
return this.name;
}
public void setName(String inName) {
this.name = inName;
}
protected void load() {
this.content = MiscHelper.readTextFile(this.file);
}
protected void store() {
MiscHelper.writeTextFile(this.file, this.content);
}
public String getContent() {
//load();
return this.content;
}
public void setContent(String inContent) {
this.content = inContent;
store();
}
}*/
|