mirror of https://github.com/apache/ant-ivy
check info line
This commit is contained in:
parent
2f085c9b59
commit
c30e37cf8f
|
|
@ -118,8 +118,9 @@ public class IvyDeliverTest {
|
|||
res.setProject(project);
|
||||
res.execute();
|
||||
|
||||
deliver.setPubrevision("1.2");
|
||||
deliver.setDeliverpattern("build/test/deliver/merge/ivy-[revision].xml");
|
||||
deliver.setPubrevision("1.2");
|
||||
deliver.setStatus("release");
|
||||
deliver.execute();
|
||||
|
||||
// should have delivered the file to the specified destination
|
||||
|
|
@ -138,10 +139,10 @@ public class IvyDeliverTest {
|
|||
mergeLine = mergeLine.trim();
|
||||
expectedLine = expectedLine.trim();
|
||||
|
||||
if (!mergeLine.startsWith("<info")) {
|
||||
assertEquals("published descriptor matches at line[" + lineNo + "]",
|
||||
expectedLine.trim(), mergeLine.trim());
|
||||
if (mergeLine.startsWith("<info")) {
|
||||
mergeLine = mergeLine.replaceFirst(" publication=\"\\d+\"", "");
|
||||
}
|
||||
assertEquals("published descriptor matches at line[" + lineNo + "]", expectedLine.trim(), mergeLine.trim());
|
||||
|
||||
++lineNo;
|
||||
mergeLine = merged.readLine();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<info organisation="apache" module="resolve-extends" revision="1.2" status="release">
|
||||
<!-- <extends organisation="apache" module="resolve-simple" revision="1.0" location="./ivy-multiconf.xml"/> -->
|
||||
|
||||
|
||||
<!-- description inherited from parent -->
|
||||
<description>Demonstrates configuration-specific dependencies</description>
|
||||
</info>
|
||||
|
|
|
|||
Loading…
Reference in New Issue