Author: tfischer
Date: Mon Sep 16 20:03:27 2013
New Revision: 1523780
URL: http://svn.apache.org/r1523780
Log:
TORQUE-292 rename the property runOnlyOnSchemaChange to runOnlyOnSourceChange
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfiguration.java
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfigurationReader.java
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitDescriptor.java
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/Controller.java
db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/PropertyToJavaGenerationTest.java
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfiguration.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfiguration.java?rev=1523780&r1=1523779&r2=1523780&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfiguration.java
(original)
+++
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfiguration.java
Mon Sep 16 20:03:27 2013
@@ -93,7 +93,7 @@ public class UnitConfiguration
* Set to true if only the sources should be processed which have
* changed since last generation.
*/
- private boolean runOnlyOnSchemaChange = false;
+ private boolean runOnlyOnSourceChange = false;
/**
* Returns the configuration of the outlets in this generation unit.
@@ -519,23 +519,23 @@ public class UnitConfiguration
* in the source files, true if the controller should be run for
* source files which have changed during last generation.
*/
- public boolean isRunOnlyOnSchemaChange()
+ public boolean isRunOnlyOnSourceChange()
{
- return runOnlyOnSchemaChange;
+ return runOnlyOnSourceChange;
}
/**
* Sets whether only the sources should be processed which have
* changed since last generation.
*
- * @param runOnlyOnSchemaChange false if the controller should be run
+ * @param runOnlyOnSourceChange false if the controller should be run
* irrespective of changes in the source files,
* true if the controller should be run for source files
* which have changed during last generation.
*/
- public void setRunOnlyOnSchemaChange(final boolean runOnlyOnSchemaChange)
+ public void setRunOnlyOnSourceChange(final boolean runOnlyOnSourceChange)
{
- this.runOnlyOnSchemaChange = runOnlyOnSchemaChange;
+ this.runOnlyOnSourceChange = runOnlyOnSourceChange;
}
/**
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfigurationReader.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfigurationReader.java?rev=1523780&r1=1523779&r2=1523780&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfigurationReader.java
(original)
+++
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitConfigurationReader.java
Mon Sep 16 20:03:27 2013
@@ -96,8 +96,8 @@ class UnitConfigurationReader
unitConfiguration.setOverrideSourceProvider(
unitDescriptor.getOverrideSourceProvider());
unitConfiguration.setClassLoader(unitDescriptor.getClassLoader());
- unitConfiguration.setRunOnlyOnSchemaChange(
- unitDescriptor.isRunOnlyOnSchemaChange());
+ unitConfiguration.setRunOnlyOnSourceChange(
+ unitDescriptor.isRunOnlyOnSourceChange());
ConfigurationProvider configurationProvider
= createConfigurationProvider(unitDescriptor);
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitDescriptor.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitDescriptor.java?rev=1523780&r1=1523779&r2=1523780&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitDescriptor.java
(original)
+++
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/UnitDescriptor.java
Mon Sep 16 20:03:27 2013
@@ -95,7 +95,7 @@ public class UnitDescriptor
* Set to true if only the sources should be processed which have
* changed since last generation.
*/
- private boolean runOnlyOnSchemaChange = false;
+ private boolean runOnlyOnSourceChange = false;
/**
* Constructor without inheritance, override options,
overrideSourceFileset,
@@ -334,22 +334,22 @@ public class UnitDescriptor
* in the source files, true if the controller should be run for
* source files which have changed during last generation.
*/
- public boolean isRunOnlyOnSchemaChange()
+ public boolean isRunOnlyOnSourceChange()
{
- return runOnlyOnSchemaChange;
+ return runOnlyOnSourceChange;
}
/**
* Sets whether only the sources should be processed which have
* changed since last generation.
*
- * @param runOnlyOnSchemaChange false if the controller should be run
+ * @param runOnlyOnSourceChange false if the controller should be run
* irrespective of changes in the source files,
* true if the controller should be run for source files
* which have changed during last generation.
*/
- public void setRunOnlyOnSchemaChange(final boolean runOnlyOnSchemaChange)
+ public void setRunOnlyOnSourceChange(final boolean runOnlyOnSourceChange)
{
- this.runOnlyOnSchemaChange = runOnlyOnSchemaChange;
+ this.runOnlyOnSourceChange = runOnlyOnSourceChange;
}
}
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/Controller.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/Controller.java?rev=1523780&r1=1523779&r2=1523780&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/Controller.java
(original)
+++
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/Controller.java
Mon Sep 16 20:03:27 2013
@@ -257,7 +257,7 @@ public class Controller
while (sourceProvider.hasNext())
{
final Source source = sourceProvider.next();
- if (!unitConfiguration.isRunOnlyOnSchemaChange()
+ if (!unitConfiguration.isRunOnlyOnSourceChange()
|| checkSourceModified(source, unitConfiguration))
{
processSourceInOutput(
@@ -266,7 +266,7 @@ public class Controller
controllerState,
unitConfiguration);
}
- if (unitConfiguration.isRunOnlyOnSchemaChange())
+ if (unitConfiguration.isRunOnlyOnSourceChange())
{
writeLastModified(source, unitConfiguration);
}
Modified:
db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/PropertyToJavaGenerationTest.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/PropertyToJavaGenerationTest.java?rev=1523780&r1=1523779&r2=1523780&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/PropertyToJavaGenerationTest.java
(original)
+++
db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/PropertyToJavaGenerationTest.java
Mon Sep 16 20:03:27 2013
@@ -167,7 +167,7 @@ public class PropertyToJavaGenerationTes
UnitDescriptor.Packaging.DIRECTORY,
projectPaths,
new DefaultTorqueGeneratorPaths());
- unitDescriptor.setRunOnlyOnSchemaChange(true);
+ unitDescriptor.setRunOnlyOnSourceChange(true);
unitDescriptors.add(unitDescriptor);
// run first time
@@ -219,7 +219,7 @@ public class PropertyToJavaGenerationTes
UnitDescriptor.Packaging.DIRECTORY,
projectPaths,
new DefaultTorqueGeneratorPaths());
- unitDescriptor.setRunOnlyOnSchemaChange(true);
+ unitDescriptor.setRunOnlyOnSourceChange(true);
unitDescriptors.add(unitDescriptor);
// run first time
@@ -278,7 +278,7 @@ public class PropertyToJavaGenerationTes
UnitDescriptor.Packaging.DIRECTORY,
projectPaths,
new DefaultTorqueGeneratorPaths());
- unitDescriptor.setRunOnlyOnSchemaChange(true);
+ unitDescriptor.setRunOnlyOnSourceChange(true);
unitDescriptors.add(unitDescriptor);
// run first time
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]