# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1402949718 -7200 # Node ID bec481687c1b12b4487ecda4b5fff126e7760542 # Parent 99a8b70a79890e7c8bf66ea7c5a96c3f471dbf4b out-xpath: class skeletons diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/config/META-INF.services/cz.frantovo.alt2xml.out.ActionFactory --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/alt2xml-out-xpath/config/META-INF.services/cz.frantovo.alt2xml.out.ActionFactory Mon Jun 16 22:15:18 2014 +0200 @@ -0,0 +1,1 @@ +cz.frantovo.alt2xml.out.xpath.XPathActionFactory \ No newline at end of file diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/nbproject/build-impl.xml --- a/java/alt2xml-out-xpath/nbproject/build-impl.xml Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xpath/nbproject/build-impl.xml Mon Jun 16 22:15:18 2014 +0200 @@ -898,6 +898,14 @@ <propertyfile file="${built-jar.properties}"> <entry key="${basedir}" value=""/> </propertyfile> + <antcall target="-maybe-call-dep"> + <param name="call.built.properties" value="${built-jar.properties}"/> + <param location="${project.alt2xml-lib-output}" name="call.subproject"/> + <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/> + <param name="call.target" value="jar"/> + <param name="transfer.built-jar.properties" value="${built-jar.properties}"/> + <param name="transfer.not.archive.disabled" value="true"/> + </antcall> </target> <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> <target depends="init" name="-check-automatic-build"> @@ -1390,6 +1398,14 @@ <propertyfile file="${built-clean.properties}"> <entry key="${basedir}" value=""/> </propertyfile> + <antcall target="-maybe-call-dep"> + <param name="call.built.properties" value="${built-clean.properties}"/> + <param location="${project.alt2xml-lib-output}" name="call.subproject"/> + <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/> + <param name="call.target" value="clean"/> + <param name="transfer.built-clean.properties" value="${built-clean.properties}"/> + <param name="transfer.not.archive.disabled" value="true"/> + </antcall> </target> <target depends="init" name="-do-clean"> <delete dir="${build.dir}"/> diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/nbproject/genfiles.properties --- a/java/alt2xml-out-xpath/nbproject/genfiles.properties Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xpath/nbproject/genfiles.properties Mon Jun 16 22:15:18 2014 +0200 @@ -1,8 +1,8 @@ -build.xml.data.CRC32=01b9f7b0 +build.xml.data.CRC32=bc595ddc build.xml.script.CRC32=a84b87c3 build.xml.stylesheet.CRC32=8064a381@1.74.2.48 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=01b9f7b0 -nbproject/build-impl.xml.script.CRC32=9e677625 +nbproject/build-impl.xml.data.CRC32=bc595ddc +nbproject/build-impl.xml.script.CRC32=0906c83d nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48 diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/nbproject/project.properties --- a/java/alt2xml-out-xpath/nbproject/project.properties Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xpath/nbproject/project.properties Mon Jun 16 22:15:18 2014 +0200 @@ -31,7 +31,8 @@ excludes= includes=** jar.compress=false -javac.classpath= +javac.classpath=\ + ${reference.alt2xml-lib-output.jar} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false @@ -58,6 +59,8 @@ meta.inf.dir=${src.dir}/META-INF mkdist.disabled=true platform.active=default_platform +project.alt2xml-lib-output=../alt2xml-lib-output +reference.alt2xml-lib-output.jar=${project.alt2xml-lib-output}/dist/alt2xml-lib-output.jar run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/nbproject/project.xml --- a/java/alt2xml-out-xpath/nbproject/project.xml Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xpath/nbproject/project.xml Mon Jun 16 22:15:18 2014 +0200 @@ -12,5 +12,15 @@ <root id="test.src.dir"/> </test-roots> </data> + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"> + <reference> + <foreign-project>alt2xml-lib-output</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>jar</target> + <clean-target>clean</clean-target> + <id>jar</id> + </reference> + </references> </configuration> </project> diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathAction.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathAction.java Mon Jun 16 22:15:18 2014 +0200 @@ -0,0 +1,41 @@ +/** + * Alt2XML + * Copyright © 2014 František Kučera (frantovo.cz) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +package cz.frantovo.alt2xml.out.xpath; + +import cz.frantovo.alt2xml.out.AbstractAction; +import cz.frantovo.alt2xml.out.ActionContext; +import cz.frantovo.alt2xml.out.OutputActionException; +import javax.xml.parsers.SAXParser; +import org.xml.sax.InputSource; + +/** + * + * @author Ing. František Kučera (frantovo.cz) + */ +public class XPathAction extends AbstractAction { + + public XPathAction(ActionContext actionContext) { + super(actionContext); + } + + @Override + public void run(SAXParser parser, InputSource source) throws OutputActionException { + // TODO: XPath + throw new UnsupportedOperationException("Not supported yet."); + } +} diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathActionFactory.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/alt2xml-out-xpath/src/cz/frantovo/alt2xml/out/xpath/XPathActionFactory.java Mon Jun 16 22:15:18 2014 +0200 @@ -0,0 +1,41 @@ +/** + * Alt2XML + * Copyright © 2014 František Kučera (frantovo.cz) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +package cz.frantovo.alt2xml.out.xpath; + +import cz.frantovo.alt2xml.out.Action; +import cz.frantovo.alt2xml.out.ActionContext; +import cz.frantovo.alt2xml.out.ActionFactory; +import cz.frantovo.alt2xml.out.OutputActionException; + +/** + * Executes XPath expression and prints result. + * + * @author Ing. František Kučera (frantovo.cz) + */ +public class XPathActionFactory implements ActionFactory { + + @Override + public String getActionCode() { + return "xpath"; + } + + @Override + public Action getAction(ActionContext context) throws OutputActionException { + return new XPathAction(context); + } +} diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xslt/nbproject/build-impl.xml --- a/java/alt2xml-out-xslt/nbproject/build-impl.xml Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xslt/nbproject/build-impl.xml Mon Jun 16 22:15:18 2014 +0200 @@ -898,6 +898,14 @@ <propertyfile file="${built-jar.properties}"> <entry key="${basedir}" value=""/> </propertyfile> + <antcall target="-maybe-call-dep"> + <param name="call.built.properties" value="${built-jar.properties}"/> + <param location="${project.alt2xml-lib-output}" name="call.subproject"/> + <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/> + <param name="call.target" value="jar"/> + <param name="transfer.built-jar.properties" value="${built-jar.properties}"/> + <param name="transfer.not.archive.disabled" value="true"/> + </antcall> </target> <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> <target depends="init" name="-check-automatic-build"> @@ -1390,6 +1398,14 @@ <propertyfile file="${built-clean.properties}"> <entry key="${basedir}" value=""/> </propertyfile> + <antcall target="-maybe-call-dep"> + <param name="call.built.properties" value="${built-clean.properties}"/> + <param location="${project.alt2xml-lib-output}" name="call.subproject"/> + <param location="${project.alt2xml-lib-output}/build.xml" name="call.script"/> + <param name="call.target" value="clean"/> + <param name="transfer.built-clean.properties" value="${built-clean.properties}"/> + <param name="transfer.not.archive.disabled" value="true"/> + </antcall> </target> <target depends="init" name="-do-clean"> <delete dir="${build.dir}"/> diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xslt/nbproject/genfiles.properties --- a/java/alt2xml-out-xslt/nbproject/genfiles.properties Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xslt/nbproject/genfiles.properties Mon Jun 16 22:15:18 2014 +0200 @@ -1,8 +1,8 @@ -build.xml.data.CRC32=d092df7a +build.xml.data.CRC32=9ab460fa build.xml.script.CRC32=f8a73b6d build.xml.stylesheet.CRC32=8064a381@1.74.2.48 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=d092df7a -nbproject/build-impl.xml.script.CRC32=395aa85c +nbproject/build-impl.xml.data.CRC32=9ab460fa +nbproject/build-impl.xml.script.CRC32=e3f35d0a nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48 diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xslt/nbproject/project.properties --- a/java/alt2xml-out-xslt/nbproject/project.properties Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xslt/nbproject/project.properties Mon Jun 16 22:15:18 2014 +0200 @@ -31,7 +31,8 @@ excludes= includes=** jar.compress=false -javac.classpath= +javac.classpath=\ + ${reference.alt2xml-lib-output.jar} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false @@ -58,6 +59,8 @@ meta.inf.dir=${src.dir}/META-INF mkdist.disabled=true platform.active=default_platform +project.alt2xml-lib-output=../alt2xml-lib-output +reference.alt2xml-lib-output.jar=${project.alt2xml-lib-output}/dist/alt2xml-lib-output.jar run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} diff -r 99a8b70a7989 -r bec481687c1b java/alt2xml-out-xslt/nbproject/project.xml --- a/java/alt2xml-out-xslt/nbproject/project.xml Mon Jun 16 22:03:57 2014 +0200 +++ b/java/alt2xml-out-xslt/nbproject/project.xml Mon Jun 16 22:15:18 2014 +0200 @@ -12,5 +12,15 @@ <root id="test.src.dir"/> </test-roots> </data> + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"> + <reference> + <foreign-project>alt2xml-lib-output</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>jar</target> + <clean-target>clean</clean-target> + <id>jar</id> + </reference> + </references> </configuration> </project>