equal
deleted
inserted
replaced
|
1 @ECHO OFF |
|
2 SETLOCAL |
|
3 |
|
4 rem |
|
5 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
6 rem All rights reserved. |
|
7 rem This component and the accompanying materials are made available |
|
8 rem under the terms of "Eclipse Public License v1.0" |
|
9 rem which accompanies this distribution, and is available |
|
10 rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 rem |
|
12 rem Initial Contributors: |
|
13 rem Nokia Corporation - initial contribution. |
|
14 rem |
|
15 rem Contributors: |
|
16 rem |
|
17 rem Description: Validates ActiveIdle3 plugin configurations |
|
18 rem |
|
19 |
|
20 SET PATH_LINT=C:\Apps\libxml2-2.6.23.win32\bin\xmllint.exe |
|
21 SET PATH_MANIFEST_XSD=hsps_manifest.xsd |
|
22 SET PATH_DEFINITION_XSD=hsps_definition.xsd |
|
23 |
|
24 IF NOT EXIST %PATH_MANIFEST_XSD% GOTO ERR_XSD |
|
25 IF NOT EXIST %PATH_DEFINITION_XSD% GOTO ERR_XSD |
|
26 |
|
27 SET ARGS_MANIFEST=--schema %PATH_MANIFEST_XSD% --noout |
|
28 SET ARGS_DEFINITION=--schema %PATH_DEFINITION_XSD% --noout |
|
29 |
|
30 echo. |
|
31 echo Validating plugin configurations against the HSPS schema files... |
|
32 echo. |
|
33 |
|
34 FOR /F %%j in ('dir ..\manifest.dat /s/b^|find "\hsps\00\" ') do %PATH_LINT% %%j %ARGS_MANIFEST% 2>&1|find "error" |
|
35 |
|
36 FOR /F %%j in ('dir ..\*.xml /s/b^|find "\hsps\00\" ') do %PATH_LINT% %%j %ARGS_DEFINITION% 2>&1|find "error" |
|
37 |
|
38 GOTO END |
|
39 |
|
40 :ERR_LINT |
|
41 ECHO XMLLint was not found! Personlize the PATH_LINT variable in %0 and download the tool. |
|
42 GOTO END |
|
43 |
|
44 :ERR_XSD |
|
45 ECHO Schema files were not found (%PATH_MANIFEST_XSD% and %PATH_DEFINITION_XSD%)! |
|
46 GOTO END |
|
47 |
|
48 :END |
|
49 |
|
50 ENDLOCAL |