directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r511328 - in /directory/ldapstudio/trunk/ldapstudio-schemas-help: build.xml ivy.xml src/main/resources/0_index.xml
Date Sat, 24 Feb 2007 19:24:39 GMT
Author: seelmann
Date: Sat Feb 24 11:24:39 2007
New Revision: 511328

URL: http://svn.apache.org/viewvc?view=rev&rev=511328
Log:
Added an ant task to generate a PDF version of the user's guide.
Optimized images and tables for PDF output

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-help/build.xml
    directory/ldapstudio/trunk/ldapstudio-schemas-help/ivy.xml
    directory/ldapstudio/trunk/ldapstudio-schemas-help/src/main/resources/0_index.xml

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-help/build.xml
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-help/build.xml?view=diff&rev=511328&r1=511327&r2=511328
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-help/build.xml (original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-help/build.xml Sat Feb 24 11:24:39 2007
@@ -23,6 +23,7 @@
 	<property name="project.output" value="${basedir}/target" />
 	<property name="project.build" value="${project.output}/build" />
 	<property name="project.html" value="${project.output}/html" />
+	<property name="project.pdf" value="${project.output}/pdf" />
 	<property name="project.src" value="${basedir}/src/main/resources" />
 
 	<property name="lib.dir" value="lib" />
@@ -195,6 +196,62 @@
 		<echo message="${project.name}-${project.version} compiled ${timestamp} by ${user.name}"
file="${project.html}/compile.timestamp" />
 	</target>
 
+	<!-- ================================== -->
+	<!--           STATIC PDF               -->
+	<!-- ================================== -->
+	<target name="static-pdf" depends="resolve" description="Generates the static pdf">
+				
+		<property name="fop.dir" value="${basedir}/lib"/>
+		<taskdef name="fop"
+		         classname="org.apache.fop.tools.anttasks.Fop">
+		         <classpath>
+		            <pathelement location="${fop.dir}/avalon-framework-api-4.2.0.jar"/>
+		            <pathelement location="${fop.dir}/avalon-framework-impl-4.2.0.jar"/>
+		            <pathelement location="${fop.dir}/commons-logging-1.1.jar"/>
+		            <pathelement location="${fop.dir}/commons-io-1.3.1.jar"/>
+		            <pathelement location="${fop.dir}/fop-0.9.3.jar"/>
+		            <pathelement location="${fop.dir}/batik-all-1.6.jar"/>
+		            <pathelement location="${fop.dir}/xmlgraphics-commons-1.1.jar"/>
+		         </classpath>
+		</taskdef>
+		
+		<mkdir dir="${project.pdf}" />
+		<copy todir="${project.pdf}">
+			<fileset dir="${basedir}/resources">
+				<include name="**" />
+			</fileset>
+		</copy>
+
+		<xslt in="${project.src}/0_index.xml" out="${project.pdf}/Apache_Directory_LDAP_Studio_Schemas_Editor.fo"
style="${basedir}/docbook-xsl/fo/docbook.xsl">
+	
+			<classpath location="lib/xalan-2.7.0.jar" />
+			
+			<param name="manifest.in.base.dir" expression="0" />
+	
+			<param name="generate.section.toc.level" expression="5" />
+			<param name="toc.max.depth" expression="3" />
+	
+			<param name="ulink.target" expression="_self" />
+			<param name="suppress.navigation" expression="0" />
+			<param name="use.id.as.filename" expression="1" />
+			<param name="chapter.autolabel" expression="I" />
+			<param name="section.autolabel" expression="1" />
+
+			<outputproperty name="method" value="xml" />
+			<outputproperty name="standalone" value="yes" />
+			<outputproperty name="encoding" value="iso8859_1" />
+			<outputproperty name="indent" value="es" />
+		</xslt>
+
+		<fop format="application/pdf" basedir="${project.pdf}" 
+	        fofile="${project.pdf}/Apache_Directory_LDAP_Studio_Schemas_Editor.fo"
+	        outfile="${project.pdf}/Apache_Directory_LDAP_Studio_Schemas_Editor.pdf" />
+
+		<tstamp>
+			<format pattern="yyyy-MMM-dd, HH:mm 'GMT'Z" property="timestamp" locale="en" />
+		</tstamp>
+		<echo message="${project.name}-${project.version} compiled ${timestamp} by ${user.name}"
file="${project.pdf}/compile.timestamp" />
+	</target>
 
 	<!-- ================================== -->
 	<!--              JAR                   -->

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-help/ivy.xml
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-help/ivy.xml?view=diff&rev=511328&r1=511327&r2=511328
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-help/ivy.xml (original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-help/ivy.xml Sat Feb 24 11:24:39 2007
@@ -22,5 +22,12 @@
 		<dependency org="org.apache.xalan" name="xalan" rev="2.7.0"/>
 		<dependency org="docbook" name="docbook-xml" rev="4.5"/>
 		<dependency org="docbook" name="docbook-xsl" rev="1.71.1"/>
+		<dependency org="commons-logging" name="commons-logging" rev="1.1"/>
+		<dependency org="commons-io" name="commons-io" rev="1.3.1"/>
+		<dependency org="avalon-framework" name="avalon-framework-api" rev="4.2.0"/>
+		<dependency org="avalon-framework" name="avalon-framework-impl" rev="4.2.0"/>
+		<dependency org="org.apache.xmlgraphics" name="fop" rev="0.9.3"/>
+		<dependency org="org.apache.xmlgraphics" name="commons" rev="1.1"/>
+		<dependency org="org.apache.xmlgraphics" name="batik" rev="1.6"/>
     </dependencies>
 </ivy-module>

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-help/src/main/resources/0_index.xml
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-help/src/main/resources/0_index.xml?view=diff&rev=511328&r1=511327&r2=511328
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-help/src/main/resources/0_index.xml (original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-help/src/main/resources/0_index.xml Sat
Feb 24 11:24:39 2007
@@ -68,7 +68,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 							    fileref="images/gettingstarted/install_1.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -84,7 +84,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 							fileref="images/gettingstarted/install_2.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -96,7 +96,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 							    fileref="images/gettingstarted/install_3.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -109,7 +109,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 							    fileref="images/gettingstarted/install_4.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -121,7 +121,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 							    fileref="images/gettingstarted/install_5.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -133,7 +133,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						<imagedata
+						<imagedata scale="50"
 							fileref="images/gettingstarted/install_6.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -146,7 +146,7 @@
 			    <screenshot>
 				    <mediaobject>
 					    <imageobject>
-						    <imagedata
+						    <imagedata scale="50"
 						    	fileref="images/gettingstarted/install_7.png" format="PNG" />
 					    </imageobject>
 				    </mediaobject>
@@ -172,7 +172,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/views_hierarchy_view.png" format="PNG" />
 							</imageobject>
 						</mediaobject>
@@ -205,7 +205,9 @@
 				</para>
 				<para>
 					<informaltable>
-						<tgroup cols="2">
+						<tgroup cols="2">
+							<colspec colname="Icon" colwidth="1* "/>
+							<colspec colname="Description" colwidth="3*" />
 							<thead>
 								<row>
 									<entry>Icon</entry>
@@ -217,7 +219,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/object_class.gif" format="GIF" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/object_class.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -227,7 +229,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/object_class_warning.gif" format="GIF"
/>
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/object_class_warning.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -237,7 +239,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/folder.png" format="PNG" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/folder.png" format="PNG"
/>
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -247,7 +249,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/attribute_type.gif" format="GIF"
/>
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/attribute_type.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -271,7 +273,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/views_schemas_view.png" format="PNG" />
 							</imageobject>
 						</mediaobject>
@@ -322,7 +324,9 @@
 				</para>
 				<para>
 					<informaltable>
-						<tgroup cols="2">
+						<tgroup cols="2">
+							<colspec colname="Icon" colwidth="1* "/>
+							<colspec colname="Description" colwidth="3*" />
 							<thead>
 								<row>
 									<entry>Icon</entry>
@@ -334,7 +338,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/schema.gif" format="GIF" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/schema.gif" format="GIF"
/>
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -344,7 +348,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/schema_core.gif" format="GIF" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/schema_core.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -354,7 +358,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/folder.png" format="PNG" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/folder.png" format="PNG"
/>
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -364,7 +368,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/object_class.gif" format="GIF" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/object_class.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -374,7 +378,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/attribute_type.gif" format="GIF"
/>
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/attribute_type.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -397,7 +401,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/views_search_view.png" format="PNG" />
 							</imageobject>
 						</mediaobject>
@@ -439,7 +443,9 @@
 				</para>
 				<para>
 					<informaltable>
-						<tgroup cols="2">
+						<tgroup cols="2">
+							<colspec colname="Icon" colwidth="1* "/>
+							<colspec colname="Description" colwidth="3*" />
 							<thead>
 								<row>
 									<entry>Icon</entry>
@@ -451,7 +457,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/object_class.gif" format="GIF" />
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/object_class.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -461,7 +467,7 @@
 									<entry align="center">
 										<mediaobject>
 											<imageobject>
-												<imagedata fileref="images/gettingstarted/attribute_type.gif" format="GIF"
/>
+												<imagedata contentdepth="1em" fileref="images/gettingstarted/attribute_type.gif"
format="GIF" />
 											</imageobject>
 										</mediaobject>
 									</entry>
@@ -486,7 +492,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_attribute_type_overview.png" format="PNG"
/>
 							</imageobject>
 						</mediaobject>
@@ -513,7 +519,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_attribute_type_source_code.png" format="PNG"
/>
 							</imageobject>
 						</mediaobject>
@@ -530,7 +536,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_object_class_overview.png" format="PNG" />
 							</imageobject>
 						</mediaobject>
@@ -554,7 +560,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_object_class_source_code.png" format="PNG"
/>
 							</imageobject>
 						</mediaobject>
@@ -571,7 +577,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_schema_source_code.png" format="PNG" />
 							</imageobject>
 						</mediaobject>
@@ -582,7 +588,7 @@
 					<screenshot>
 						<mediaobject>
 							<imageobject>
-								<imagedata
+								<imagedata scale="50"
 									fileref="images/gettingstarted/editors_schema_source_code_context_menu.png" format="PNG"
/>
 							</imageobject>
 						</mediaobject>
@@ -608,7 +614,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/opening_a_schema/toolbar_action.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -618,7 +624,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/opening_a_schema/file_menu.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -629,7 +635,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/opening_a_schema/open_dialog.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -646,7 +652,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_schema/toolbar_action.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -657,7 +663,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_schema/wizard.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -668,7 +674,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_schema/wizard_error.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -686,7 +692,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/removing_a_schema/toolbar_action.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -705,7 +711,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_object_class/toolbar_action.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -718,7 +724,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_object_class/wizard.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -729,7 +735,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_object_class/wizard_error_same_name.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -740,7 +746,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_object_class/wizard_error_same_oid.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -751,7 +757,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_object_class/wizard_error_malformed_oid.png"
format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -770,7 +776,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_attribute_type/toolbar_action.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -783,7 +789,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_attribute_type/wizard.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -794,7 +800,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_attribute_type/wizard_error_same_name.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -805,7 +811,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_attribute_type/wizard_error_same_oid.png" format="PNG"
/>
 						</imageobject>
 					</mediaobject>
@@ -816,7 +822,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/tasks/creating_a_new_attribute_type/wizard_error_malformed_oid.png"
format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -836,7 +842,10 @@
             <para>On the ObjectClass and AttributeType preferences page, you can indicate
the following preferences.</para>
             <para>
 				<informaltable>
-					<tgroup cols="3">
+					<tgroup cols="3">
+						<colspec colname="Option" colwidth="2* "/>
+						<colspec colname="Description" colwidth="3*" />
+						<colspec colname="Default" colwidth="1*" />
 						<thead>
 							<row>
 								<entry>Option</entry>
@@ -864,7 +873,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/reference/preferences_OC_and_AT.png" format="PNG" />
 						</imageobject>
 					</mediaobject>
@@ -879,6 +888,9 @@
             <para>
 				<informaltable>
 					<tgroup cols="3">
+						<colspec colname="Option" colwidth="2* "/>
+						<colspec colname="Description" colwidth="3*" />
+						<colspec colname="Default" colwidth="1*" />
 						<thead>
 							<row>
 								<entry>Option</entry>
@@ -916,7 +928,7 @@
 				<screenshot>
 					<mediaobject>
 						<imageobject>
-							<imagedata
+							<imagedata scale="50"
 								fileref="images/reference/preferences_schemas.png" format="PNG" />
 						</imageobject>
 					</mediaobject>



Mime
View raw message