OSDN Git Service

ADT #1844909: Tweak XML schema, add more tests.
authorRaphael <raphael@google.com>
Fri, 15 May 2009 19:11:35 +0000 (12:11 -0700)
committerRaphael <raphael@google.com>
Fri, 15 May 2009 19:46:02 +0000 (12:46 -0700)
commit17c674d1057aeb3946747ca3b1d67a8468e1efb4
tree6f640d3d55e558a4bff36df4dbf550dab24603b1
parent0837619559dc2384c32a91f4ec4ca6ea69a17fcf
ADT #1844909: Tweak XML schema, add more tests.

Change XML schema to allow for empty <libs>, e.g. one can create
and add-on that doesn't declare any extra lib.
However enforce that <archives> contains at least one <archive>
element to prevent someone from declaring a download element
that cannot actually be downloaded.

Added a couple tests for validation of empty documents.
tools/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository.xsd
tools/sdkmanager/libs/sdklib/tests/com/android/sdklib/repository/TestSdkRepository.java
tools/sdkmanager/libs/sdklib/tests/com/android/sdklib/repository/repository_sample.xml