# HG changeset patch # User Ingo Weinzierl # Date 1314104754 0 # Node ID 2d60a875e28c3e62b8126604d32df02f0b4b6111 # Parent fdb0f4ef96f01337725ad88c9f5f2d4d84b3f390 Set the master artifact while output creation. flys-artifacts/trunk@2532 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r fdb0f4ef96f0 -r 2d60a875e28c flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Aug 23 11:07:21 2011 +0000 +++ b/flys-artifacts/ChangeLog Tue Aug 23 13:05:54 2011 +0000 @@ -1,3 +1,9 @@ +2011-08-23 Ingo Weinzierl + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Declare the first artifact of an output as master artifact (artifacts + are ordered by their creation time). + 2011-08-23 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java: diff -r fdb0f4ef96f0 -r 2d60a875e28c flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Tue Aug 23 11:07:21 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Tue Aug 23 13:05:54 2011 +0000 @@ -270,11 +270,10 @@ continue; } - // TODO Remove the following two lines of code! The master - // artifact has to be determined correctly after - // OutGenerator.init is called! Artifact artifact = getArtifact(art, context); - generator.setMasterArtifact(artifact); + if (i == 0) { + generator.setMasterArtifact(artifact); + } if (theme.getActive() == 0) { continue;