git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270223 13f79535-47bb-0310-9956-ffa450edef68master
@@ -190,26 +190,6 @@ public class Project | |||||
log( "Detected OS: " + System.getProperty( "os.name" ), MSG_VERBOSE ); | log( "Detected OS: " + System.getProperty( "os.name" ), MSG_VERBOSE ); | ||||
} | } | ||||
/** | |||||
* set a property. An existing property of the same name will not be | |||||
* overwritten. | |||||
* | |||||
* @param name name of property | |||||
* @param value new value of the property | |||||
* @since 1.5 | |||||
*/ | |||||
public void setNewProperty( String name, String value ) | |||||
{ | |||||
if( null != properties.get( name ) ) | |||||
{ | |||||
log( "Override ignored for property " + name, MSG_VERBOSE ); | |||||
return; | |||||
} | |||||
log( "Setting project property: " + name + " -> " + | |||||
value, MSG_DEBUG ); | |||||
properties.put( name, value ); | |||||
} | |||||
/** | /** | ||||
* get the base directory of the project as a file object | * get the base directory of the project as a file object | ||||
* | * | ||||
@@ -289,16 +269,6 @@ public class Project | |||||
return references; | return references; | ||||
} | } | ||||
/** | |||||
* get the target hashtable | |||||
* | |||||
* @return hashtable, the contents of which can be cast to Target | |||||
*/ | |||||
public Hashtable getTargets() | |||||
{ | |||||
return targets; | |||||
} | |||||
/** | /** | ||||
* get the current task definition hashtable | * get the current task definition hashtable | ||||
* | * | ||||
@@ -347,16 +317,6 @@ public class Project | |||||
} | } | ||||
} | } | ||||
/** | |||||
* Output a message to the log with the default log level of MSG_INFO | |||||
* | |||||
* @param msg text to log | |||||
*/ | |||||
public void log( String msg ) | |||||
{ | |||||
log( msg, MSG_INFO ); | |||||
} | |||||
/** | /** | ||||
* Output a message to the log with the given log level and an event scope | * Output a message to the log with the given log level and an event scope | ||||
* of project | * of project | ||||
@@ -368,30 +328,6 @@ public class Project | |||||
{ | { | ||||
} | } | ||||
/** | |||||
* Output a message to the log with the given log level and an event scope | |||||
* of a task | |||||
* | |||||
* @param task task to use in the log | |||||
* @param msg text to log | |||||
* @param msgLevel level to log at | |||||
*/ | |||||
public void log( Task task, String msg, int msgLevel ) | |||||
{ | |||||
} | |||||
/** | |||||
* Output a message to the log with the given log level and an event scope | |||||
* of a target | |||||
* | |||||
* @param target target to use in the log | |||||
* @param msg text to log | |||||
* @param msgLevel level to log at | |||||
*/ | |||||
public void log( Target target, String msg, int msgLevel ) | |||||
{ | |||||
} | |||||
/** | /** | ||||
* Replace ${} style constructions in the given value with the string value | * Replace ${} style constructions in the given value with the string value | ||||
* of the corresponding data types. | * of the corresponding data types. | ||||
@@ -190,26 +190,6 @@ public class Project | |||||
log( "Detected OS: " + System.getProperty( "os.name" ), MSG_VERBOSE ); | log( "Detected OS: " + System.getProperty( "os.name" ), MSG_VERBOSE ); | ||||
} | } | ||||
/** | |||||
* set a property. An existing property of the same name will not be | |||||
* overwritten. | |||||
* | |||||
* @param name name of property | |||||
* @param value new value of the property | |||||
* @since 1.5 | |||||
*/ | |||||
public void setNewProperty( String name, String value ) | |||||
{ | |||||
if( null != properties.get( name ) ) | |||||
{ | |||||
log( "Override ignored for property " + name, MSG_VERBOSE ); | |||||
return; | |||||
} | |||||
log( "Setting project property: " + name + " -> " + | |||||
value, MSG_DEBUG ); | |||||
properties.put( name, value ); | |||||
} | |||||
/** | /** | ||||
* get the base directory of the project as a file object | * get the base directory of the project as a file object | ||||
* | * | ||||
@@ -289,16 +269,6 @@ public class Project | |||||
return references; | return references; | ||||
} | } | ||||
/** | |||||
* get the target hashtable | |||||
* | |||||
* @return hashtable, the contents of which can be cast to Target | |||||
*/ | |||||
public Hashtable getTargets() | |||||
{ | |||||
return targets; | |||||
} | |||||
/** | /** | ||||
* get the current task definition hashtable | * get the current task definition hashtable | ||||
* | * | ||||
@@ -347,16 +317,6 @@ public class Project | |||||
} | } | ||||
} | } | ||||
/** | |||||
* Output a message to the log with the default log level of MSG_INFO | |||||
* | |||||
* @param msg text to log | |||||
*/ | |||||
public void log( String msg ) | |||||
{ | |||||
log( msg, MSG_INFO ); | |||||
} | |||||
/** | /** | ||||
* Output a message to the log with the given log level and an event scope | * Output a message to the log with the given log level and an event scope | ||||
* of project | * of project | ||||
@@ -368,30 +328,6 @@ public class Project | |||||
{ | { | ||||
} | } | ||||
/** | |||||
* Output a message to the log with the given log level and an event scope | |||||
* of a task | |||||
* | |||||
* @param task task to use in the log | |||||
* @param msg text to log | |||||
* @param msgLevel level to log at | |||||
*/ | |||||
public void log( Task task, String msg, int msgLevel ) | |||||
{ | |||||
} | |||||
/** | |||||
* Output a message to the log with the given log level and an event scope | |||||
* of a target | |||||
* | |||||
* @param target target to use in the log | |||||
* @param msg text to log | |||||
* @param msgLevel level to log at | |||||
*/ | |||||
public void log( Target target, String msg, int msgLevel ) | |||||
{ | |||||
} | |||||
/** | /** | ||||
* Replace ${} style constructions in the given value with the string value | * Replace ${} style constructions in the given value with the string value | ||||
* of the corresponding data types. | * of the corresponding data types. | ||||