Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --check-repo-ilis does not scan for models in subrepositories of parentSite #82

Open
beistehen opened this issue Nov 17, 2022 · 0 comments

Comments

@beistehen
Copy link
Contributor

Wie im AWT2-Workshop demonstriert, werden bei der Option --check-repo-ilis Modelle nicht gefunden, wenn sie nicht genau in jenem externen Repository liegen, welches in ilimodels.xml im Attribut parentSite angegeben ist. Es findet kein Suche in den Subrepositories von parentSite statt.

Wird jedoch in ilimodels.xml das externe Repository im Attribut subsidiarySite aufgeführt, so werden alle Modelle gefunden, also auch solche, die nicht direkt in subsidiarySite liegen.

Folgendes funktioniert nicht (nicht alle externen Modelle werden gefunden):

<parentSite>
  <IliSite09.RepositoryLocation_>
    <value>https://models.interlis.ch</value>
  </IliSite09.RepositoryLocation_>
</parentSite>

folgendes funktioniert (alle externen Modelle werden gefunden):

<subsidiarySite>
  <IliSite09.RepositoryLocation_>
    <value>https://models.interlis.ch</value>
  </IliSite09.RepositoryLocation_>
</subsidiarySite>

Mini-Repository zum Testen im Anhang.

--trace liefert:

>java -jar ili2c-5.3.0\ili2c.jar --trace --modeldir root --check-repo-ilis root
Info: ili2c-5.3.0-90a8da73b8eb7696cb50ce8ae0ee5b422d33fba7
Info: setRepositories(): uri <root> (IliManager.java:90)
Info: check file <Basismodelle/AWT2_Basismodell_A.ili> in <root>
Info: lookup model <GeometryCHLV95_V1> 2.3 in repository <root/>
Info: getIliFiles(): read ilimodels.xml from <root/>... (RepositoryAccess.java:123)
Info: getIliSite(): read ilisite.xml from <root>... (RepositoryAccess.java:165)
Info: lookup model <GeometryCHLV95_V1> 2.3 in repository <https://models.interlis.ch/>
Info: getIliFiles(): read ilimodels.xml from <https://models.interlis.ch/>... (RepositoryAccess.java:123)
Info: getIliSite(): read ilisite.xml from <https://models.interlis.ch/>... (RepositoryAccess.java:165)
Info: lookup model <Units> 2.3 in repository <root/>
Info: lookup model <Units> 2.3 in repository <https://models.interlis.ch/>
GeometryCHLV95_V1: model(s) not found
    ch.interlis.ilirepository.IliManager.getConfig(IliManager.java:337)
    ch.interlis.ili2c.CheckReposIlis.checkRepoIlis(CheckReposIlis.java:209)
    ch.interlis.ili2c.Main.main(Main.java:463)
compile failed with files: Basismodelle/AWT2_Basismodell_A.ili
check of ili's in repositories failed

root.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant