Building the Library
- Comfirm you have a working version of Ant installed.
- Download the source jar from SourceForge.
- Extract the code from the source jar. It will expand into a folder called
YetAnotherSwingLibwith the following files and sub-folders:- build.xml
- /deployment
- /lib (This folder is a placeholder for future use.)
- /logging-props
- /source
- /source-slf4j
- Execute the following in the same folder as build.xml:
ant build. The build.xml file has the following targets:- api: creates API documentation in the JavaDoc format.
- build: compiles all source files and creates all jars.
- clean: removes all files created by the build.
- clean-build: executes clean then build.
The output from the build will be located in the deployment folder. The build will create four jar files:
- yasl-arch-1.0.jar: contains all the classes required to implement the architecture. The packages included are:
org/yasl/archandorg/yasl/xmlobjects. - yasl-slf4j-1.0.jar: contains all the classes required for the yasl implementation of slf4j. The packages included are:
org/slf4j,org/yasl/logging/interfaces, andorg/yasl/logging/impl. - yasl-components-1.0.jar: contains all the classes for the component library. The packages included are:
org.yasl.about,org.yasl.componentlist,org.yasl.debugging,org.yasl.jars,org.yasl.layout,org.yasl.logging.component,org.yasl.logging.interfaces,org.yasl.tables,org.yasl.text,org.yasl.util, andorg.yasl.xmlobjects. - yasl-testapp-1.0.jar: contains the classes, xml config, and properties required to run the test application. The packages and files included are:
org/yasl/testapp,yaslslf4jlogging.properties, andmanifest.testapp.mf.
Running the Test Application
You can run the test application with the following command: java -jar yasl-testapp-1.0.jar. The sole purpose of this application is to test components and architecture features. Note that the test application depends on the other three yasl jars. These jars (slf4j-api-1.3.0.jar; yasl-arch-1.0.jar; yasl-slf4j-1.0.jar; yasl-components-1.0.jar) must be in the same folder as the test application jar.
