Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifactFactory.java @ 533:3d9d6d61d0c6 3.1.7
Use the real artifact name.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 11:04:34 +0200 |
parents | 863f1fa66981 |
children | 584591f8203c |
comparison
equal
deleted
inserted
replaced
532:107c0f48478e | 533:3d9d6d61d0c6 |
---|---|
143 Artifact artifact = | 143 Artifact artifact = |
144 (Artifact)artifactClass.newInstance(); | 144 (Artifact)artifactClass.newInstance(); |
145 String oldName = artifact.getName(); | 145 String oldName = artifact.getName(); |
146 | 146 |
147 if (oldName == null || oldName.length() == 0) { | 147 if (oldName == null || oldName.length() == 0) { |
148 artifact.setName(artifactName); | 148 artifact.setName(name); |
149 } | 149 } |
150 artifact.setup( | 150 artifact.setup( |
151 identifier, | 151 identifier, |
152 this, | 152 this, |
153 context, | 153 context, |