Intersult Live is a product for live deployment of files.
<?xml version="1.0" encoding="UTF-8"?> <live> <mapping source="C\:\Java\workspace-helios\com.intersult\public\jsf-desktop\target/classes" target="/"/> </live>
The live.xml has to be located in the root directory of the resulting JAR file. It is independent using \ or / as path separators, paths are normalized.
<project> ... <build> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>**/*.properties</exclude> </excludes> <filtering>true</filtering> </resource> </resources> </build> ... </project>
After this step you are able to use ${...}-Expressions in live.xml files: Simply JAR:
<?xml version="1.0" encoding="UTF-8"?> <live xmlns="http://intersult.com/live/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://intersult.com/live/1.0 http://repository.intersult.com/repository/com/intersult/live/1.0-SNAPSHOT/live.xsd "> <mapping source="${project.build.directory}/classes" target="/"/> </live>
JAR with resources:
<?xml version="1.0" encoding="UTF-8"?> <live xmlns="http://intersult.com/live/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://intersult.com/live/1.0 http://repository.intersult.com/repository/com/intersult/live/1.0-SNAPSHOT/live.xsd "> <mapping source="${project.build.directory}/classes" target="/"> <exclude path="/META-INF*"/> </mapping> <mapping source="${basedir}/src/main/resources" target="/"/> </live>
WAR:
<?xml version="1.0" encoding="UTF-8"?> <live xmlns="http://intersult.com/live/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://intersult.com/live/1.0 http://repository.intersult.com/repository/com/intersult/live/1.0-SNAPSHOT/live.xsd"> <mapping source="${project.build.directory}/classes" target="/WEB-INF/classes"/> <mapping source="${basedir}/src/main/webapp" target="/" loader="jndi:/localhost/${project.name}"> <exclude path="/META-INF*"/> </mapping> </live>