Closed GoogleCodeExporter closed 9 years ago
Original comment by kevin.br...@gmail.com
on 3 Mar 2015 at 5:54
I was incorrect about one thing, it does not matter where the "base" file is.
I've adjusted the test script.
Using "Teacher2.ump" instead of "sub/Teacher2.ump" still fails.
Original comment by kevin.br...@gmail.com
on 3 Mar 2015 at 6:16
Original comment by kevin.br...@gmail.com
on 3 Mar 2015 at 6:16
I'm confident it is because when you specify Linked Files, there is no path
resolution happening. Thus, instead of checking if the file specified is in the
same folder as the "base" file, it just arbitrarily adds the path. This results
in the use statement looking for "sub" directories.
I'm unsure how to proceed, if adjusting it to make it do path resolution is the
correct path, or introducing a different API and holding the old one as is.
Original comment by kevin.br...@gmail.com
on 3 Mar 2015 at 6:21
Tests in UmpleModelTest.java have been commented out pending this.
Original comment by kevin.br...@gmail.com
on 3 Mar 2015 at 6:44
"use" relative paths are (or should) be from respect to the file itself, not
the origin of the caller. So you added "sub/Teacher2.ump", but "linking" it
(which is like a use) would be relative to "sub", so it should be
uFile.addLinkedFiles("student2.ump");
This provides for deterministic relative paths. Please re-test and if
confirmed we can close this ticket as works as expected.
Original comment by aforw...@gmail.com
on 3 Mar 2015 at 8:28
You are correct Andrew, I've modified how the Ant task works to take this into
account. The ant task now makes any files specified as Linked files be made
relative to the src files' directory.
The build has just kicked off on Travis to make sure my changes are correct. I
did add tests to make sure that this is the case and is held.
https://travis-ci.org/Nava2/Umple/builds/52981108
Original comment by kevin.br...@gmail.com
on 4 Mar 2015 at 12:40
Closing this as Fixed, it was kind of invalid, kind of not. The issue was
actually with the Ant Tasks.
Original comment by kevin.br...@gmail.com
on 9 Mar 2015 at 4:37
Original issue reported on code.google.com by
kevin.br...@gmail.com
on 3 Mar 2015 at 5:54