を使用してコードを生成していますが、生成されたソースは個別のXSLT
ファイルのセットにローカライズする必要があります。ファイルをjar / ar / tarのような形式で保存するために使用できるツール/形式(XMLに基づく?)はありますか?私はこのようなことを考えています:
<?xml version="1.0"?>
<archive>
<file path="test/Test01.java" content-type="plain-text" checksum="something">
package test;
public class Test01
{
}
</file>
<file path="test/data.properties" content-type="plain-text" checksum="something">
prop1=value1
</file>
</archive>
更新され たので、この種の XML アーカイブを生成したいと思います:
xsltproc xml2java.xslt my-structure-defined-as-xml.xml > myarchive.xml
また
my-xar-tool cvf myarchive.xml test/data.properties test/Test01.java
#adding test/data.properties
#adding test/Test01.java
このアーカイブのコンテンツを抽出するには:
my-xar-tool xvf myarchive.xml
#extracting test/data.properties
#extracting test/Test01.java
そのようなアーカイブを記述した既存の XML スキーマは既に存在しますか?