Commit 4c6327a92c3ce16cdbc726cefbae458a12432029

Authored by Andreas Kraft
2 parents c0340630 45578b9b

Merge pull request #11 from ankraft/clean-build-directories

Clean build directories
1   -# RWD050
  1 +# Smart Device Template
2 2  
3   -Repository for the Smart Home Device Template (SDT).
  3 +Repository for the Smart Device Template (SDT).
4 4  
5 5 Note that this project runs under Apache 2.0 license. Read the [LICENSE](LICENSE) in this repository, or refer to [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
6 6  
... ...
... ... @@ -9,31 +9,10 @@
9 9 </classpath>
10 10 </taskdef>
11 11  
12   -<!-- BND tool -->
13   -<taskdef resource="aQute/bnd/ant/taskdef.properties">
14   - <classpath>
15   - <pathelement location="${path.libs}/ant/bnd-0.0.378.jar"/>
16   - </classpath>
17   -</taskdef>
18   -
19 12 <!-- Set the log level -->
20 13 <taskdef name="setloglevel"
21 14 classname="de.berkom.ehome.tools.ant.setloglevel.SetLogLevel"
22 15 classpath="${path.libs}/ant/antSetLogLevel.jar"/>
23 16  
24   -<!-- Ant Thinlet Dialog -->
25   -<taskdef name="dialog"
26   - classname="de.berkom.ehome.tools.ant.dialog.Dialog"
27   - classpath="${path.libs}/ant/antDialog.jar"/>
28   -
29   -<!-- SVN Library -->
30   -<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">
31   - <classpath>
32   - <pathelement location="${path.libs}/ant/svnant.jar"/>
33   - <pathelement location="${path.libs}/ant/svnClientAdapter.jar"/>
34   - <pathelement location="${path.libs}/ant/svnjavahl.jar"/>
35   - </classpath>
36   -</taskdef>
37   -
38 17 </project>
39 18  
... ...
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
  1 +# Build System Libraries and Licenses
  2 +The following libraries are used in the build system for the SDT.
  3 +
  4 +## trang.jar
  5 +
  6 +[http://www.thaiopensource.com/relaxng/trang-manual.html](http://www.thaiopensource.com/relaxng/trang-manual.html)
  7 +
  8 +Trang takes as input a schema written in any of the following formats:
  9 +
  10 +- RELAX NG (XML syntax)
  11 +- RELAX NG (compact syntax)
  12 +- XML 1.0 DTD
  13 +
  14 +and produces as output a schema written in any of the following formats:
  15 +
  16 +- RELAX NG (XML syntax)
  17 +- RELAX NG (compact syntax)
  18 +- XML 1.0 DTD
  19 +- W3C XML Schema
  20 +
  21 +Trang can also infer a schema from one or more example XML documents.
  22 +
  23 +
  24 +### License
  25 +Copyright (c) 2002, 2003, 2008 Thai Open Source Software Center Ltd
  26 +All rights reserved.
  27 +
  28 +Redistribution and use in source and binary forms, with or without
  29 +modification, are permitted provided that the following conditions are
  30 +met:
  31 +
  32 +- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  33 +- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  34 +- Neither the name of the Thai Open Source Software Center Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  35 +
  36 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  37 +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  38 +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  39 +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
  40 +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  41 +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  42 +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  43 +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  44 +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  45 +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  46 +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  47 +
  48 +## Ant-Contrib Tasks
  49 +
  50 +[http://ant-contrib.sourceforge.net](http://ant-contrib.sourceforge.net)
  51 +
  52 +The Ant-Contrib project is a collection of tasks (and at one point maybe types and other tools) for Apache Ant.
  53 +
  54 +### License
  55 +
  56 +This Software is distributed under the Apache Software License.
  57 +
  58 +## antSetLogLevel.jar
  59 +
  60 +GUI dialog for Ant tasks.
  61 +
  62 +Source: Deutsche Telekom
  63 +
  64 +
  65 +
... ...
... ... @@ -4,15 +4,22 @@ This document describes the SDT build system and how to build the SDT and valida
4 4 The files referenced in this document point to version **2.0** of the SDT.
5 5  
6 6 ## Directory Structure and Important Files
7   -- [SDT/schema2.0/](..) : Base directory
8   -- [SDT/schema2.0/src/](src/) : Source files of the SDT.
9   - - [domain.rng](src/domain.rng) : RELAX NG file with the SDT schema definition. This is the source file that is converted to the actual schema definition *domain.xsd* during the build. See also [http://en.wikipedia.org/wiki/RELAX_NG](http://en.wikipedia.org/wiki/RELAX_NG).
  7 +- [SDT/schema2.0/](../..) : Base directory
  8 +- [SDT/schema2.0/src/](../src/) : Source files of the SDT.
  9 + - [domain.rng](../src/domain.rng) : RELAX NG file with the SDT schema definition. This is the source file that is converted to the actual schema definition *domain.xsd* during the build. See also [http://en.wikipedia.org/wiki/RELAX_NG](http://en.wikipedia.org/wiki/RELAX_NG).
10 10 **Only edit this file when one wants to make changes to the SDT!**
11   - - [domain.xsd](src/domain.xsd) : The SDT schema defintion that is generated from *domain.rng*.
12   - - [xml.xsd](src/xml.xsd) : General schema definitions for the SDT
13   -- [SDT/schema2.0/test/](test/) : This directory contains all XML files with SDT definitions that should be validated whether they conform to the SDT schema. This could be example definitions or contributions.
14   -- [SDT/schema2.0/build.xml](build.xml) : This is the definition file for the ant build system.
15   -- [SDT/schema2.0/etc/](etc/), [SDT/schema2.0/lib/](lib/), [SDT/schema2.0/style/](style/) : internal directories for the build system. Please, don't make unnecessary changes to these files.
  11 + - [domain.xsd](../src/domain.xsd) : The SDT schema defintion that is generated from *domain.rng*.
  12 + - [xml.xsd](../src/xml.xsd) : General schema definitions for the SDT
  13 +- [SDT/schema2.0/test/](../test/) : This directory contains all XML files with SDT definitions that should be validated whether they conform to the SDT schema. This could be example definitions or contributions.
  14 +- [SDT/schema2.0/build.xml](../build.xml) : This is the definition file for the ant build system.
  15 +- [SDT/schema2.0/etc/](../etc/), [SDT/schema2.0/style/](../style/) : internal directories for the build system. Please, don't make unnecessary changes to these files.
  16 + - [SDT/schema2.0/etc/dal.rnc](../etc/dal.rnc) : This file contains various configuration parameter to convert the file [domain.rng](../src/domain.rng) to schema file. **The important parameter to change when changing the namespace or the version number is**:
  17 +
  18 + default namespace xsl = "http://homegatewayinitiative.org/xml/dal/2.0"
  19 +
  20 + - [SDT/schema2.0/etc/schemas.xml](../etc/schemas.xml) : This file contains the header for the schema file. **This must be changed when changing the namespace or the version number.**
  21 +
  22 +- [SDT/schema2.0/lib/](lib/) : Tasks for the ant-based build system. See also [SDT Build System Components and Licenses](SDT%20Build%20System%20Components%20and%20Licenses.md).
16 23  
17 24 ## Installation
18 25 - Install Java on your computer
... ... @@ -25,7 +32,7 @@ The files referenced in this document point to version **2.0** of the SDT.
25 32 After cloning the repository go to the directoy *SDT/schema* and run commands depending on what you want to achieve.
26 33  
27 34 ### Build the Schema
28   -Running *ant* without any parameter builds the schema definition from the rng-definition [SDT/schema2.0/src/domain.rng](src/domain.rng) and writes it to [SDT/schema2.0/src/domain.xsd](src/domain.xsd)
  35 +Running *ant* without any parameter builds the schema definition from the rng-definition [SDT/schema2.0/src/domain.rng](../src/domain.rng) and writes it to [SDT/schema2.0/src/domain.xsd](../src/domain.xsd)
29 36  
30 37 $ cd SDT/schema
31 38 $ ant
... ... @@ -50,17 +57,17 @@ Otherwise you most likely receive a stacktrace or some other error messages. Sea
50 57 ---
51 58  
52 59 ## Editing
53   -As mentioned above, the actual schema definition is defined in the file [domain.rng](src/domain.rng) and converted to the XML schema definition [domain.xsd](src/domain.xsd) during the build process.
  60 +As mentioned above, the actual schema definition is defined in the file [domain.rng](../src/domain.rng) and converted to the XML schema definition [domain.xsd](../src/domain.xsd) during the build process.
54 61  
55   -**All changes to the schema must therefore be made in [domain.rng](src/domain.rng), NOT [domain.xsd](src/domain.xsd) !**
  62 +**All changes to the schema must therefore be made in [domain.rng](../src/domain.rng), NOT [domain.xsd](../src/domain.xsd) !**
56 63  
57 64 You may need to make additional changes in the following files, e.g. when the name space or the version number need to be adjusted.
58 65  
59 66 PLEASE ONLY EDIT THESE FILES IF NECESSARY.
60 67  
61   -- [SDT/schema2.0/build.xml](build.xml)
  68 +- [SDT/schema2.0/build.xml](../build.xml)
62 69 e.g. in the *ant* target "validate"
63   -- [SDT/schema2.0/etc/dal.rnc](etc/dal.rnc)
  70 +- [SDT/schema2.0/etc/dal.rnc](../etc/dal.rnc)
64 71 e.g. the entry "default namespace xsl"
65   -- [SDT/schema2.0/etc/schema.xmlns](etc/schema.xmlns)
66   -- [SDT/schema2.0/etc/schemas.xml](etc/schemas.xml)
  72 +- [SDT/schema2.0/etc/schema.xmlns](../etc/schema.xmlns)
  73 +- [SDT/schema2.0/etc/schemas.xml](../etc/schemas.xml)
... ...
... ... @@ -9,31 +9,10 @@
9 9 </classpath>
10 10 </taskdef>
11 11  
12   -<!-- BND tool -->
13   -<taskdef resource="aQute/bnd/ant/taskdef.properties">
14   - <classpath>
15   - <pathelement location="${path.libs}/ant/bnd-0.0.378.jar"/>
16   - </classpath>
17   -</taskdef>
18   -
19 12 <!-- Set the log level -->
20 13 <taskdef name="setloglevel"
21 14 classname="de.berkom.ehome.tools.ant.setloglevel.SetLogLevel"
22 15 classpath="${path.libs}/ant/antSetLogLevel.jar"/>
23 16  
24   -<!-- Ant Thinlet Dialog -->
25   -<taskdef name="dialog"
26   - classname="de.berkom.ehome.tools.ant.dialog.Dialog"
27   - classpath="${path.libs}/ant/antDialog.jar"/>
28   -
29   -<!-- SVN Library -->
30   -<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">
31   - <classpath>
32   - <pathelement location="${path.libs}/ant/svnant.jar"/>
33   - <pathelement location="${path.libs}/ant/svnClientAdapter.jar"/>
34   - <pathelement location="${path.libs}/ant/svnjavahl.jar"/>
35   - </classpath>
36   -</taskdef>
37   -
38 17 </project>
39 18  
... ...
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type