out-xpath: class skeletons
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 16 Jun 2014 22:15:18 +0200
changeset 49bec481687c1b
parent 48 99a8b70a7989
child 50 3af3ef97f33f
out-xpath: class skeletons
java/alt2xml-out-xpath/config/META-INF.services/cz.frantovo.alt2xml.out.ActionFactory
java/alt2xml-out-xpath/nbproject/build-impl.xml
java/alt2xml-out-xpath/nbproject/genfiles.properties
java/alt2xml-out-xpath/nbproject/project.properties
java/alt2xml-out-xpath/nbproject/project.xml
java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathAction.java
java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathActionFactory.java
java/alt2xml-out-xslt/nbproject/build-impl.xml
java/alt2xml-out-xslt/nbproject/genfiles.properties
java/alt2xml-out-xslt/nbproject/project.properties
java/alt2xml-out-xslt/nbproject/project.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/alt2xml-out-xpath/config/META-INF.services/cz.frantovo.alt2xml.out.ActionFactory	Mon Jun 16 22:15:18 2014 +0200
     1.3 @@ -0,0 +1,1 @@
     1.4 +cz.frantovo.alt2xml.out.xpath.XPathActionFactory
     1.5 \ No newline at end of file
     2.1 --- a/java/alt2xml-out-xpath/nbproject/build-impl.xml	Mon Jun 16 22:03:57 2014 +0200
     2.2 +++ b/java/alt2xml-out-xpath/nbproject/build-impl.xml	Mon Jun 16 22:15:18 2014 +0200
     2.3 @@ -898,6 +898,14 @@
     2.4          <propertyfile file="${built-jar.properties}">
     2.5              <entry key="${basedir}" value=""/>
     2.6          </propertyfile>
     2.7 +        <antcall target="-maybe-call-dep">
     2.8 +            <param name="call.built.properties" value="${built-jar.properties}"/>
     2.9 +            <param location="${project.alt2xml-lib-output}" name="call.subproject"/>
    2.10 +            <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/>
    2.11 +            <param name="call.target" value="jar"/>
    2.12 +            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
    2.13 +            <param name="transfer.not.archive.disabled" value="true"/>
    2.14 +        </antcall>
    2.15      </target>
    2.16      <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
    2.17      <target depends="init" name="-check-automatic-build">
    2.18 @@ -1390,6 +1398,14 @@
    2.19          <propertyfile file="${built-clean.properties}">
    2.20              <entry key="${basedir}" value=""/>
    2.21          </propertyfile>
    2.22 +        <antcall target="-maybe-call-dep">
    2.23 +            <param name="call.built.properties" value="${built-clean.properties}"/>
    2.24 +            <param location="${project.alt2xml-lib-output}" name="call.subproject"/>
    2.25 +            <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/>
    2.26 +            <param name="call.target" value="clean"/>
    2.27 +            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
    2.28 +            <param name="transfer.not.archive.disabled" value="true"/>
    2.29 +        </antcall>
    2.30      </target>
    2.31      <target depends="init" name="-do-clean">
    2.32          <delete dir="${build.dir}"/>
     3.1 --- a/java/alt2xml-out-xpath/nbproject/genfiles.properties	Mon Jun 16 22:03:57 2014 +0200
     3.2 +++ b/java/alt2xml-out-xpath/nbproject/genfiles.properties	Mon Jun 16 22:15:18 2014 +0200
     3.3 @@ -1,8 +1,8 @@
     3.4 -build.xml.data.CRC32=01b9f7b0
     3.5 +build.xml.data.CRC32=bc595ddc
     3.6  build.xml.script.CRC32=a84b87c3
     3.7  build.xml.stylesheet.CRC32=8064a381@1.74.2.48
     3.8  # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     3.9  # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    3.10 -nbproject/build-impl.xml.data.CRC32=01b9f7b0
    3.11 -nbproject/build-impl.xml.script.CRC32=9e677625
    3.12 +nbproject/build-impl.xml.data.CRC32=bc595ddc
    3.13 +nbproject/build-impl.xml.script.CRC32=0906c83d
    3.14  nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48
     4.1 --- a/java/alt2xml-out-xpath/nbproject/project.properties	Mon Jun 16 22:03:57 2014 +0200
     4.2 +++ b/java/alt2xml-out-xpath/nbproject/project.properties	Mon Jun 16 22:15:18 2014 +0200
     4.3 @@ -31,7 +31,8 @@
     4.4  excludes=
     4.5  includes=**
     4.6  jar.compress=false
     4.7 -javac.classpath=
     4.8 +javac.classpath=\
     4.9 +    ${reference.alt2xml-lib-output.jar}
    4.10  # Space-separated list of extra javac options
    4.11  javac.compilerargs=
    4.12  javac.deprecation=false
    4.13 @@ -58,6 +59,8 @@
    4.14  meta.inf.dir=${src.dir}/META-INF
    4.15  mkdist.disabled=true
    4.16  platform.active=default_platform
    4.17 +project.alt2xml-lib-output=../alt2xml-lib-output
    4.18 +reference.alt2xml-lib-output.jar=${project.alt2xml-lib-output}/dist/alt2xml-lib-output.jar
    4.19  run.classpath=\
    4.20      ${javac.classpath}:\
    4.21      ${build.classes.dir}
     5.1 --- a/java/alt2xml-out-xpath/nbproject/project.xml	Mon Jun 16 22:03:57 2014 +0200
     5.2 +++ b/java/alt2xml-out-xpath/nbproject/project.xml	Mon Jun 16 22:15:18 2014 +0200
     5.3 @@ -12,5 +12,15 @@
     5.4                  <root id="test.src.dir"/>
     5.5              </test-roots>
     5.6          </data>
     5.7 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
     5.8 +            <reference>
     5.9 +                <foreign-project>alt2xml-lib-output</foreign-project>
    5.10 +                <artifact-type>jar</artifact-type>
    5.11 +                <script>build.xml</script>
    5.12 +                <target>jar</target>
    5.13 +                <clean-target>clean</clean-target>
    5.14 +                <id>jar</id>
    5.15 +            </reference>
    5.16 +        </references>
    5.17      </configuration>
    5.18  </project>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathAction.java	Mon Jun 16 22:15:18 2014 +0200
     6.3 @@ -0,0 +1,41 @@
     6.4 +/**
     6.5 + * Alt2XML
     6.6 + * Copyright © 2014 František Kučera (frantovo.cz)
     6.7 + *
     6.8 + * This program is free software: you can redistribute it and/or modify
     6.9 + * it under the terms of the GNU General Public License as published by
    6.10 + * the Free Software Foundation, either version 3 of the License, or
    6.11 + * (at your option) any later version.
    6.12 + *
    6.13 + * This program is distributed in the hope that it will be useful,
    6.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    6.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    6.16 + * GNU General Public License for more details.
    6.17 + *
    6.18 + * You should have received a copy of the GNU General Public License
    6.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    6.20 + */
    6.21 +package cz.frantovo.alt2xml.out.xpath;
    6.22 +
    6.23 +import cz.frantovo.alt2xml.out.AbstractAction;
    6.24 +import cz.frantovo.alt2xml.out.ActionContext;
    6.25 +import cz.frantovo.alt2xml.out.OutputActionException;
    6.26 +import javax.xml.parsers.SAXParser;
    6.27 +import org.xml.sax.InputSource;
    6.28 +
    6.29 +/**
    6.30 + *
    6.31 + * @author Ing. František Kučera (frantovo.cz)
    6.32 + */
    6.33 +public class XPathAction extends AbstractAction {
    6.34 +
    6.35 +	public XPathAction(ActionContext actionContext) {
    6.36 +		super(actionContext);
    6.37 +	}
    6.38 +
    6.39 +	@Override
    6.40 +	public void run(SAXParser parser, InputSource source) throws OutputActionException {
    6.41 +		// TODO: XPath
    6.42 +		throw new UnsupportedOperationException("Not supported yet.");
    6.43 +	}
    6.44 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathActionFactory.java	Mon Jun 16 22:15:18 2014 +0200
     7.3 @@ -0,0 +1,41 @@
     7.4 +/**
     7.5 + * Alt2XML
     7.6 + * Copyright © 2014 František Kučera (frantovo.cz)
     7.7 + *
     7.8 + * This program is free software: you can redistribute it and/or modify
     7.9 + * it under the terms of the GNU General Public License as published by
    7.10 + * the Free Software Foundation, either version 3 of the License, or
    7.11 + * (at your option) any later version.
    7.12 + *
    7.13 + * This program is distributed in the hope that it will be useful,
    7.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    7.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    7.16 + * GNU General Public License for more details.
    7.17 + *
    7.18 + * You should have received a copy of the GNU General Public License
    7.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    7.20 + */
    7.21 +package cz.frantovo.alt2xml.out.xpath;
    7.22 +
    7.23 +import cz.frantovo.alt2xml.out.Action;
    7.24 +import cz.frantovo.alt2xml.out.ActionContext;
    7.25 +import cz.frantovo.alt2xml.out.ActionFactory;
    7.26 +import cz.frantovo.alt2xml.out.OutputActionException;
    7.27 +
    7.28 +/**
    7.29 + * Executes XPath expression and prints result.
    7.30 + *
    7.31 + * @author Ing. František Kučera (frantovo.cz)
    7.32 + */
    7.33 +public class XPathActionFactory implements ActionFactory {
    7.34 +
    7.35 +	@Override
    7.36 +	public String getActionCode() {
    7.37 +		return "xpath";
    7.38 +	}
    7.39 +
    7.40 +	@Override
    7.41 +	public Action getAction(ActionContext context) throws OutputActionException {
    7.42 +		return new XPathAction(context);
    7.43 +	}
    7.44 +}
     8.1 --- a/java/alt2xml-out-xslt/nbproject/build-impl.xml	Mon Jun 16 22:03:57 2014 +0200
     8.2 +++ b/java/alt2xml-out-xslt/nbproject/build-impl.xml	Mon Jun 16 22:15:18 2014 +0200
     8.3 @@ -898,6 +898,14 @@
     8.4          <propertyfile file="${built-jar.properties}">
     8.5              <entry key="${basedir}" value=""/>
     8.6          </propertyfile>
     8.7 +        <antcall target="-maybe-call-dep">
     8.8 +            <param name="call.built.properties" value="${built-jar.properties}"/>
     8.9 +            <param location="${project.alt2xml-lib-output}" name="call.subproject"/>
    8.10 +            <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/>
    8.11 +            <param name="call.target" value="jar"/>
    8.12 +            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
    8.13 +            <param name="transfer.not.archive.disabled" value="true"/>
    8.14 +        </antcall>
    8.15      </target>
    8.16      <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
    8.17      <target depends="init" name="-check-automatic-build">
    8.18 @@ -1390,6 +1398,14 @@
    8.19          <propertyfile file="${built-clean.properties}">
    8.20              <entry key="${basedir}" value=""/>
    8.21          </propertyfile>
    8.22 +        <antcall target="-maybe-call-dep">
    8.23 +            <param name="call.built.properties" value="${built-clean.properties}"/>
    8.24 +            <param location="${project.alt2xml-lib-output}" name="call.subproject"/>
    8.25 +            <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/>
    8.26 +            <param name="call.target" value="clean"/>
    8.27 +            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
    8.28 +            <param name="transfer.not.archive.disabled" value="true"/>
    8.29 +        </antcall>
    8.30      </target>
    8.31      <target depends="init" name="-do-clean">
    8.32          <delete dir="${build.dir}"/>
     9.1 --- a/java/alt2xml-out-xslt/nbproject/genfiles.properties	Mon Jun 16 22:03:57 2014 +0200
     9.2 +++ b/java/alt2xml-out-xslt/nbproject/genfiles.properties	Mon Jun 16 22:15:18 2014 +0200
     9.3 @@ -1,8 +1,8 @@
     9.4 -build.xml.data.CRC32=d092df7a
     9.5 +build.xml.data.CRC32=9ab460fa
     9.6  build.xml.script.CRC32=f8a73b6d
     9.7  build.xml.stylesheet.CRC32=8064a381@1.74.2.48
     9.8  # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     9.9  # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    9.10 -nbproject/build-impl.xml.data.CRC32=d092df7a
    9.11 -nbproject/build-impl.xml.script.CRC32=395aa85c
    9.12 +nbproject/build-impl.xml.data.CRC32=9ab460fa
    9.13 +nbproject/build-impl.xml.script.CRC32=e3f35d0a
    9.14  nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48
    10.1 --- a/java/alt2xml-out-xslt/nbproject/project.properties	Mon Jun 16 22:03:57 2014 +0200
    10.2 +++ b/java/alt2xml-out-xslt/nbproject/project.properties	Mon Jun 16 22:15:18 2014 +0200
    10.3 @@ -31,7 +31,8 @@
    10.4  excludes=
    10.5  includes=**
    10.6  jar.compress=false
    10.7 -javac.classpath=
    10.8 +javac.classpath=\
    10.9 +    ${reference.alt2xml-lib-output.jar}
   10.10  # Space-separated list of extra javac options
   10.11  javac.compilerargs=
   10.12  javac.deprecation=false
   10.13 @@ -58,6 +59,8 @@
   10.14  meta.inf.dir=${src.dir}/META-INF
   10.15  mkdist.disabled=true
   10.16  platform.active=default_platform
   10.17 +project.alt2xml-lib-output=../alt2xml-lib-output
   10.18 +reference.alt2xml-lib-output.jar=${project.alt2xml-lib-output}/dist/alt2xml-lib-output.jar
   10.19  run.classpath=\
   10.20      ${javac.classpath}:\
   10.21      ${build.classes.dir}
    11.1 --- a/java/alt2xml-out-xslt/nbproject/project.xml	Mon Jun 16 22:03:57 2014 +0200
    11.2 +++ b/java/alt2xml-out-xslt/nbproject/project.xml	Mon Jun 16 22:15:18 2014 +0200
    11.3 @@ -12,5 +12,15 @@
    11.4                  <root id="test.src.dir"/>
    11.5              </test-roots>
    11.6          </data>
    11.7 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    11.8 +            <reference>
    11.9 +                <foreign-project>alt2xml-lib-output</foreign-project>
   11.10 +                <artifact-type>jar</artifact-type>
   11.11 +                <script>build.xml</script>
   11.12 +                <target>jar</target>
   11.13 +                <clean-target>clean</clean-target>
   11.14 +                <id>jar</id>
   11.15 +            </reference>
   11.16 +        </references>
   11.17      </configuration>
   11.18  </project>