Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Fixed some default value issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Feb 13, 2009
1 parent 526bd70 commit 306d9f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions build.bat
@@ -0,0 +1,2 @@
@echo off
ant -q %*
Binary file modified lib/js_build_tools.jar
Binary file not shown.
10 changes: 5 additions & 5 deletions src/com/moxiecode/ant/tasks/PreProcessTask.java
Expand Up @@ -18,9 +18,9 @@

public class PreProcessTask extends Task {
protected String inFile, outFile;
protected String defines[];
protected String defines[] = new String[] {""};

public void PreProcess(InputStream in_stream, OutputStream out_stream, String defines[]) throws IOException {
public void preProcess(InputStream in_stream, OutputStream out_stream, String defines[]) throws IOException {
BufferedReader in = null;
BufferedWriter out = null;
String line;
Expand Down Expand Up @@ -108,10 +108,10 @@ public void PreProcess(InputStream in_stream, OutputStream out_stream, String de

public void execute() throws BuildException {
try {
if (this.inFile == null || this.outFile == null || this.defines == null)
throw new BuildException("Missing required: infile, outfile or defines parameters.");
if (this.inFile == null || this.outFile == null)
throw new BuildException("Missing required: infile or outfile parameters.");

this.PreProcess(new FileInputStream(this.inFile), new FileOutputStream(this.outFile), this.defines);
this.preProcess(new FileInputStream(this.inFile), new FileOutputStream(this.outFile), this.defines);
} catch (IOException ex) {
throw new BuildException("I/O Error when preprocessing file", ex);
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/moxiecode/ant/tasks/YuiCompressTask.java
Expand Up @@ -21,7 +21,7 @@ public class YuiCompressTask extends Task {
protected String charset = "ISO-8859-1", inFile, outFile;
protected int lineBreakPosition = -1;
protected boolean munge = true;
protected boolean warn = true;
protected boolean warn = false;
protected boolean preserveAllSemiColons = false;
protected boolean optimize = true;

Expand Down

0 comments on commit 306d9f3

Please sign in to comment.