@@ -106,7 +106,6 @@ import org.apache.tools.ant.types.Reference;
* @since 1.5
* @since 1.5
*/
*/
public class JspC extends MatchingTask {
public class JspC extends MatchingTask {
/* ------------------------------------------------------------ */
private Path classpath;
private Path classpath;
private Path compilerClasspath;
private Path compilerClasspath;
private Path src;
private Path src;
@@ -155,11 +154,11 @@ public class JspC extends MatchingTask {
private static final String FAIL_MSG
private static final String FAIL_MSG
= "Compile failed, messages should have been provided.";
= "Compile failed, messages should have been provided.";
/* ------------------------------------------------------------ */
/**
/**
* P ath for source JSP files.
* Set the p ath for source JSP files.
*/
*/
public void setSrcd ir(Path srcDir) {
public void setSrcD ir(Path srcDir) {
if (src == null) {
if (src == null) {
src = srcDir;
src = srcDir;
} else {
} else {
@@ -169,7 +168,7 @@ public class JspC extends MatchingTask {
public Path getSrcDir(){
public Path getSrcDir(){
return src;
return src;
}
}
/* ------------------------------------------------------------ */
/**
/**
* Set the destination directory into which the JSP source
* Set the destination directory into which the JSP source
* files should be compiled.
* files should be compiled.
@@ -180,7 +179,6 @@ public class JspC extends MatchingTask {
public File getDestdir(){
public File getDestdir(){
return destDir;
return destDir;
}
}
/* ------------------------------------------------------------ */
/**
/**
* Set the name of the package the compiled jsp files should be in.
* Set the name of the package the compiled jsp files should be in.
@@ -193,7 +191,6 @@ public class JspC extends MatchingTask {
return packageName;
return packageName;
}
}
/* ------------------------------------------------------------ */
/**
/**
* Set the verbose level of the compiler
* Set the verbose level of the compiler
*/
*/
@@ -204,7 +201,6 @@ public class JspC extends MatchingTask {
return verbose;
return verbose;
}
}
/* ------------------------------------------------------------ */
/**
/**
* Whether or not the build should halt if compilation fails.
* Whether or not the build should halt if compilation fails.
* Defaults to <code>true</code>.
* Defaults to <code>true</code>.
@@ -218,15 +214,15 @@ public class JspC extends MatchingTask {
public boolean getFailonerror() {
public boolean getFailonerror() {
return failOnError;
return failOnError;
}
}
/* ------------------------------------------------------------ */
public String getIeplugin() {
public String getIeplugin() {
return iepluginid;
return iepluginid;
}
}
/**
/**
* Java Plugin CLASSID for Internet Explorer
* Java Plugin CLASSID for Internet Explorer
*/
*/
public void setIeplugin(String iepluginid_ ) {
iepluginid = iepluginid_ ;
public void setIeplugin(String iepluginid) {
this. iepluginid = iepluginid;
}
}
/**
/**
@@ -237,12 +233,13 @@ public class JspC extends MatchingTask {
public boolean isMapped() {
public boolean isMapped() {
return mapped;
return mapped;
}
}
/**
/**
* If true, generate separate write() calls for each HTML line
* If true, generate separate write() calls for each HTML line
* in the JSP.
* in the JSP.
*/
*/
public void setMapped(boolean mapped_ ) {
mapped = mapped_ ;
public void setMapped(boolean mapped) {
this. mapped = mapped;
}
}
/**
/**
@@ -426,12 +423,12 @@ public class JspC extends MatchingTask {
// make sure that we've got a srcdir
// make sure that we've got a srcdir
if (src == null) {
if (src == null) {
throw new BuildException("srcdir attribute must be set!",
throw new BuildException("srcdir attribute must be set!",
location );
}
getLocation() );
}
String [] list = src.list();
String [] list = src.list();
if (list.length == 0) {
if (list.length == 0) {
throw new BuildException("srcdir attribute must be set!",
throw new BuildException("srcdir attribute must be set!",
location );
getLocation() );
}
}
@@ -449,7 +446,7 @@ public class JspC extends MatchingTask {
resetFileLists();
resetFileLists();
int filecount = 0;
int filecount = 0;
for (int i = 0; i < list.length; i++) {
for (int i = 0; i < list.length; i++) {
File srcDir = (File) getProject().resolveFile(list[i]);
File srcDir = getProject().resolveFile(list[i]);
if (!srcDir.exists()) {
if (!srcDir.exists()) {
throw new BuildException("srcdir \"" + srcDir.getPath() +
throw new BuildException("srcdir \"" + srcDir.getPath() +
"\" does not exist!", getLocation());
"\" does not exist!", getLocation());