This commit is contained in:
Doug MacEachern committed 2009-02-09 13:28:00 -08:00
1 parent 93afe26132
commit 2e3c302f4f
7 files changed
+768 -768

No files matched your search

@@ -16,54 +16,54 @@
* USA.
*/
package org.hyperic.jni;
import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.Copy;
public class CopyDependsTask extends Copy {
private File depends;
protected void validateAttributes()
throws BuildException {
super.validateAttributes();
if (this.depends == null) {
throw new BuildException("missing depends attribute");
}
}
public void execute()
throws BuildException {
if (this.destFile.exists()) {
String state;
if (this.depends.lastModified() >
this.destFile.lastModified())
{
this.setOverwrite(true);
state = "out of date";
}
else {
state = "up to date";
}
log(this.destFile +
" " + state + " with " +
this.depends);
}
super.execute();
}
public File getDepends() {
return this.depends;
}
public void setDepends(String depends) {
this.depends = new File(depends);
}
}
package org.hyperic.jni;
import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.Copy;
public class CopyDependsTask extends Copy {
private File depends;
protected void validateAttributes()
throws BuildException {
super.validateAttributes();
if (this.depends == null) {
throw new BuildException("missing depends attribute");
}
}
public void execute()
throws BuildException {
if (this.destFile.exists()) {
String state;
if (this.depends.lastModified() >
this.destFile.lastModified())
{
this.setOverwrite(true);
state = "out of date";
}
else {
state = "up to date";
}
log(this.destFile +
" " + state + " with " +
this.depends);
}
super.execute();
}
public File getDepends() {
return this.depends;
}
public void setDepends(String depends) {
this.depends = new File(depends);
}
}