Cleaning.
This commit is contained in:
parent
fe391612c6
commit
78ec0b739f
1 changed files with 6 additions and 15 deletions
|
@ -1,7 +1,9 @@
|
||||||
package fr.devinsy.xid;
|
package fr.devinsy.xid;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.BufferedReader;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.io.StringWriter;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,11 +11,7 @@ import java.io.*;
|
||||||
*/
|
*/
|
||||||
public class FilePresenter extends DomPresenter
|
public class FilePresenter extends DomPresenter
|
||||||
{
|
{
|
||||||
static protected org.apache.log4j.Logger logger;
|
static protected org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (FilePresenter.class);
|
||||||
static
|
|
||||||
{
|
|
||||||
logger = org.apache.log4j.Logger.getLogger (FilePresenter.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected String sourceFilePathname;
|
protected String sourceFilePathname;
|
||||||
protected long sourceFileTime;
|
protected long sourceFileTime;
|
||||||
|
@ -90,14 +88,7 @@ public class FilePresenter extends DomPresenter
|
||||||
// Get the good tree.
|
// Get the good tree.
|
||||||
File source = new File (this.sourceFilePathname);
|
File source = new File (this.sourceFilePathname);
|
||||||
|
|
||||||
if (source == null)
|
if (!source.exists ())
|
||||||
{
|
|
||||||
String errorMessage = "source file not defined";
|
|
||||||
logger.error (errorMessage);
|
|
||||||
result = null;
|
|
||||||
throw new Exception (errorMessage);
|
|
||||||
}
|
|
||||||
else if (!source.exists ())
|
|
||||||
{
|
{
|
||||||
String errorMessage = "source file defined but not found (" + this.sourceFilePathname + ")";
|
String errorMessage = "source file defined but not found (" + this.sourceFilePathname + ")";
|
||||||
logger.error (errorMessage);
|
logger.error (errorMessage);
|
||||||
|
|
Loading…
Reference in a new issue