Packages should have a config.xml file in their base package
directory. This file will be used to populate the OSCAR database with
information about the package. It can also be used to create database
tables and ODA shortcuts. Here is a minimum config.xml file:
<oscar>
<name>snargle</name> <!-- sets package name -->
<version> <!-- sets package version combines -->
<major>N</major> <!-- into a version of N.N.N-N -->
<minor>N</minor>
<subversion>N</subversion>
<release>N</release>
</version>
<class>third-party</class>
<summary>installs the snargle utility</summary>
<license>LICENSEe</license>
<group>GROUP/SUBGROUP</group>
<description>DESCRIPTION, CAN BE MULTI-LINE WITHIN BLOCK</description>
<package>
<database_tables>
<table1>
<fields>
<field1>
<default> default1 </default>
</field1>
<field2>
<type> integer </type>
<default> 17 </default>
</field2>
</fields>
</table1>
</database_tables>
<snargle>
<shortcut> test1 expansion1 </shortcut>
</snargle>
</oscar>
The above config.xml file will set various fields in the packages
database table for the snargle package record. For more complete
examples, see any of the config.xml files included with OSCAR. For
best example of how to create database tables or shortcuts, see the
config.xml file for the oda package. The above example will also
create a database table named package_snargle_table1 with fields named
field1 and field2. The default value for field1 will be "default1", and
field2 will be of type integer with a default value of 17. An ODA
database shortcut will be created with the name
"package_snargle_test1" that expands to "expansion1".
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel