Skip to content

Commit

Permalink
ignore(listings): have been linted
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Jan 28, 2020
1 parent 6f16656 commit 09c39d6
Show file tree
Hide file tree
Showing 106 changed files with 984 additions and 617 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:copy xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destination="sub"/>
<xdb:copy



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destination="sub"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:copy xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays" destination="sub"/>
<xdb:copy



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays" destination="sub"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:move xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destination="sub"/>
<xdb:move



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destination="sub"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:move xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays" destination="sub"/>
<xdb:move



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays" destination="sub"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:xpath xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db" query="/example-queries/query"/>
<xdb:xpath



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db" query="/example-queries/query"/>
10 changes: 7 additions & 3 deletions src/main/xar-resources/data/ant-tasks/listings/listing-16.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<xdb:xquery xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db" queryUri="http://www.example.com/query/xquery-task.xql" user="guest" password="guest-passwd">
<variable name="beta" value="ϐ"/>
</xdb:xquery>
<xdb:xquery



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db" queryUri="http://www.example.com/query/xquery-task.xql" user="guest" password="guest-passwd">
<variable name="beta" value="ϐ"/>
</xdb:xquery>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:extract xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destfile="/tmp/hamlet.xml"/>
<xdb:extract



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml" destfile="/tmp/hamlet.xml"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:extract xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" destdir="/tmp" subcollections="true" createdirectories="true"/>
<xdb:extract



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" destdir="/tmp" subcollections="true" createdirectories="true"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:backup xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" dir="${backup.dir}" user="${backup.user}" password="${backup.pass}"/>
<xdb:backup



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" dir="${backup.dir}" user="${backup.user}" password="${backup.pass}"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:restore xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc" user="admin" password="" dir="${backup.dir}/db/home"/>
<xdb:restore



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc" user="admin" password="" dir="${backup.dir}/db/home"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:groups xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" outputproperty="groups"/>
<xdb:groups



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" outputproperty="groups"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:users xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" outputproperty="users"/>
<xdb:users



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/system" outputproperty="users"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:lock xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespeare/plays" resource="hamlet.xml" name="guest"/>
<xdb:lock



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespeare/plays" resource="hamlet.xml" name="guest"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:adduser xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest" secret="ToPSecreT" primaryGroup="users"/>
<xdb:adduser



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest" secret="ToPSecreT" primaryGroup="users"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:rmuser xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
<xdb:rmuser



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:password xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" user="dba-user" password="dba-user-SecreT" name="guest" secret="Guest-Changed-Secret"/>
<xdb:password



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" user="dba-user" password="dba-user-SecreT" name="guest" secret="Guest-Changed-Secret"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:addgroup xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
<xdb:addgroup



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:rmgroup xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
<xdb:rmgroup



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db" name="guest"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:chmod xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespear/plays" resource="hamlet.xml" mode="group=-write,other=-write"/>
<xdb:chmod



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespear/plays" resource="hamlet.xml" mode="group=-write,other=-write"/>
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:chown xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespeare/plays" resource="hamlet.xml" name="guest" group="guest"/>
<xdb:chown



xmlns:xdb="http://exist-db.org/ant" uri="${backup.uri}/db/shakespeare/plays" resource="hamlet.xml" name="guest" group="guest"/>
98 changes: 44 additions & 54 deletions src/main/xar-resources/data/ant-tasks/listings/listing-37.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,48 @@
<project xmlns:xdb="http://exist-db.org/ant" name="exist-data-migrate" default="migrate">
<description>Migrate data from one instance of eXist-db to another</description>

<!-- edit these properties //-->
<property name="p.exist.dir" value="/opt/eXist-1.0"/>
<property name="p.source.exist.url" value="xmldb:exist://www.example.org:8080/exist/xmlrpc/db/"/>
<property name="p.source.user" value="myusername"/>
<property name="p.source.pass" value="myuserpass"/>
<property name="p.target.exist.url" value="xmldb:exist://www.example.org:8680/exist/xmlrpc/db/"/>
<property name="p.target.user" value="myotherusername"/>
<property name="p.target.pass" value="myotheruserpass"/>
<property name="p.export.dir" location="export"/>

<!-- import eXist-db tasks -->
<typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
<classpath>
<fileset dir="${p.exist.dir}/lib/core">
<include name="*.jar"/>
</fileset>
<fileset dir="${p.exist.dir}/lib/endorsed">
<include name="*.jar"/>
</fileset>
<fileset dir="${p.exist.dir}/lib/optional">
<include name="*.jar"/>
</fileset>
<pathelement location="${p.exist.dir}/exist.jar"/>
<pathelement location="${p.exist.dir}/exist-optional.jar"/>
</classpath>
</typedef>

<target name="clean">
<project



xmlns:xdb="http://exist-db.org/ant" name="exist-data-migrate" default="migrate">
<description>Migrate data from one instance of eXist-db to another</description>
<!-- edit these properties //-->
<property name="p.exist.dir" value="/opt/eXist-1.0"/>
<property name="p.source.exist.url" value="xmldb:exist://www.example.org:8080/exist/xmlrpc/db/"/>
<property name="p.source.user" value="myusername"/>
<property name="p.source.pass" value="myuserpass"/>
<property name="p.target.exist.url" value="xmldb:exist://www.example.org:8680/exist/xmlrpc/db/"/>
<property name="p.target.user" value="myotherusername"/>
<property name="p.target.pass" value="myotheruserpass"/>
<property name="p.export.dir" location="export"/>
<!-- import eXist-db tasks -->
<typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
<classpath>
<fileset dir="${p.exist.dir}/lib/core">
<include name="*.jar"/>
</fileset>
<fileset dir="${p.exist.dir}/lib/endorsed">
<include name="*.jar"/>
</fileset>
<fileset dir="${p.exist.dir}/lib/optional">
<include name="*.jar"/>
</fileset>
<pathelement location="${p.exist.dir}/exist.jar"/>
<pathelement location="${p.exist.dir}/exist-optional.jar"/>
</classpath>
</typedef>
<target name="clean">
<delete dir="${p.export.dir}"/>
<mkdir dir="${p.export.dir}"/>
</target>

<target name="migrate" depends="extract-source, load-target">
</target>
<target name="migrate" depends="extract-source, load-target">
<echo message="migration complete"/>
</target>

<target name="extract-source" depends="clean" description="export xml from source eXist-db instance">

<xdb:extract uri="${p.source.exist.url}" user="${p.source.user}" password="${p.source.pass}" destdir="${p.export.dir}"/>

</target>

<target name="load-target" description="store xml to target eXist-db instance">

<xdb:store uri="${p.target.exist.url}" user="${p.target.user}" password="${p.target.pass}" createcollection="true" createsubcollections="true">

<fileset dir="${p.export.dir}"/>
</xdb:store>

</target>

<target name="check-env" description="check env and dependencies are installed">
</target>

</target>
<target name="extract-source" depends="clean" description="export xml from source eXist-db instance">
<xdb:extract uri="${p.source.exist.url}" user="${p.source.user}" password="${p.source.pass}" destdir="${p.export.dir}"/>
</target>
<target name="load-target" description="store xml to target eXist-db instance">
<xdb:store uri="${p.target.exist.url}" user="${p.target.user}" password="${p.target.pass}" createcollection="true" createsubcollections="true">
<fileset dir="${p.export.dir}"/>
</xdb:store>
</target>
<target name="check-env" description="check env and dependencies are installed"></target>
</project>
6 changes: 5 additions & 1 deletion src/main/xar-resources/data/ant-tasks/listings/listing-4.xml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:remove xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml"/>
<xdb:remove



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml"/>
6 changes: 5 additions & 1 deletion src/main/xar-resources/data/ant-tasks/listings/listing-5.xml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:remove xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays"/>
<xdb:remove



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays"/>
6 changes: 5 additions & 1 deletion src/main/xar-resources/data/ant-tasks/listings/listing-6.xml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:create xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays"/>
<xdb:create



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collection="plays"/>
8 changes: 6 additions & 2 deletions src/main/xar-resources/data/ant-tasks/listings/listing-7.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<condition property="exists">
<xdb:exist xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml"/>
</condition>
<xdb:exist



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resource="hamlet.xml"/>
</condition>
6 changes: 5 additions & 1 deletion src/main/xar-resources/data/ant-tasks/listings/listing-8.xml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:list xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resources="true" outputproperty="resources"/>
<xdb:list



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays" resources="true" outputproperty="resources"/>
6 changes: 5 additions & 1 deletion src/main/xar-resources/data/ant-tasks/listings/listing-9.xml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<xdb:list xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collections="true" outputproperty="collections"/>
<xdb:list



xmlns:xdb="http://exist-db.org/ant" uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare" collections="true" outputproperty="collections"/>
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<para>There is an asset <inlinemediaobject>
<para>There is an asset



<inlinemediaobject>
<imageobject>
<imagedata fileref="assets/webstart.small.jpg"/>
</imageobject>
</inlinemediaobject> here.</para>
</inlinemediaobject> here.



</para>
Loading

0 comments on commit 09c39d6

Please sign in to comment.