Buggy code:
public class WLRun extends Task { private static final String defaultPolicyFile = "weblogic.policy" ; private String classpath ; private String weblogicClasspath = "" ; private String securityPolicy ; private File weblogicSystemHome ; private String weblogicSystemName = "myserver" ; private String weblogicPropertiesFile = "weblogic.properties" ; public void execute ( ) throws BuildException { if ( ( weblogicSystemHome ) == null ) { throw new BuildException ( "weblogic<seq2seq4repair_space>home<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set" ) ; } if ( ! ( weblogicSystemHome . isDirectory ( ) ) ) { throw new BuildException ( ( ( "weblogic<seq2seq4repair_space>home<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( weblogicSystemHome . getPath ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>valid" ) ) ; } File propertiesFile = new File ( weblogicSystemHome , weblogicPropertiesFile ) ; if ( ! ( propertiesFile . exists ( ) ) ) { throw new BuildException ( ( ( ( "Properties<seq2seq4repair_space>file<seq2seq4repair_space>" + ( weblogicPropertiesFile ) ) + "<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>weblogic<seq2seq4repair_space>home<seq2seq4repair_space>" ) + ( weblogicSystemHome ) ) ) ; } File securityPolicyFile = null ; if ( ( securityPolicy ) == null ) { securityPolicyFile = new File ( weblogicSystemHome , WLRun . defaultPolicyFile ) ; } else { securityPolicyFile = new File ( weblogicSystemHome , securityPolicy ) ; } if ( ! ( securityPolicyFile . exists ( ) ) ) { throw new BuildException ( ( ( "Security<seq2seq4repair_space>policy<seq2seq4repair_space>" + securityPolicyFile ) + "<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ) ; } String execClassPath = project . translatePath ( classpath ) ; Java weblogicServer = ( ( Java ) ( project . createTask ( "java" ) ) ) ; weblogicServer . setFork ( "yes" ) ; weblogicServer . setClassname ( "weblogic.Server" ) ; String jvmArgs = "" ; if ( ( weblogicClasspath ) != null ) { jvmArgs += "-Dweblogic.class.path=" + ( project . translatePath ( weblogicClasspath ) ) ; } jvmArgs += "<seq2seq4repair_space>-Djava.security.manager<seq2seq4repair_space>-Djava.security.policy==" + securityPolicyFile ; jvmArgs += "<seq2seq4repair_space>-Dweblogic.system.home=" + ( weblogicSystemHome ) ; jvmArgs += "<seq2seq4repair_space>-Dweblogic.system.name=" + ( weblogicSystemName ) ; jvmArgs += "<seq2seq4repair_space>-Dweblogic.system.propertiesFile=" + ( weblogicPropertiesFile ) ; weblogicServer . setJvmargs ( jvmArgs ) ; <START_BUG> weblogicServer . setClasspath ( execClassPath ) ; <END_BUG> if ( ( weblogicServer . executeJava ( ) ) != 0 ) { throw new BuildException ( "Execution<seq2seq4repair_space>of<seq2seq4repair_space>weblogic<seq2seq4repair_space>server<seq2seq4repair_space>failed" ) ; } } public void setClasspath ( String s ) { } public void setWlclasspath ( String weblogicClasspath ) { } public void setPolicy ( String securityPolicy ) { } public void setHome ( String weblogicHome ) { } public void setName ( String serverName ) { } public void setProperties ( String propertiesFilename ) { } }

Fix:
weblogicServer . setClasspath ( new Path ( execClassPath ) ) ;