Skip to content

Commit 94ffdab

Browse files
committed
substitution on name and description fields
1 parent 6fbbbe4 commit 94ffdab

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ publishing {
5151
}
5252

5353
group 'mil.army.usace.hec'
54-
version '0.0.47'
54+
version '0.0.48'
5555
}

src/main/java/usace/cc/plugin/Action.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public Map<String,DataSource> getParameters(){
2121
return parameters;
2222
}
2323
public void UpdateActionPaths(){
24+
PluginManager pm = PluginManager.getInstance();
25+
this.name = pm.SubstitutePath(this.name);
26+
this.description = pm.SubstitutePath(this.description);
2427
if(parameters!=null){
2528
for(Map.Entry<String, DataSource> apb : parameters.entrySet()){
2629
parameters.replace(apb.getKey(),apb.getValue().UpdatePaths());

src/main/java/usace/cc/plugin/DataSource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public String getStoreName(){
2929
public DataSource UpdatePaths(){
3030
DataSource dest = this;
3131
PluginManager pm = PluginManager.getInstance();
32+
dest.Name = pm.SubstitutePath(this.getName());
3233
if(this.getPaths()!=null){
3334
for(int j=0; j<this.getPaths().length;j++){
3435
pm.LogMessage(new Message("incoming: " + this.getPaths()[j]));

0 commit comments

Comments
 (0)