Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DLM Fragment Pushing Tool

Note

This has been updated only slightly for uPortal 3. The attached code likely does NOT work without modification

Note!! This tool has not been extensively tested and should probably not be used in a production environment!

...

At the end of the file before the end project tag, add

Code Block
xml
xml
	<target name="pushdlmgen" description="Generates dlm fragments data file from dlm.xml" depends="compile">
		
    <uportal-impl-macro>
        <java fork="true" failonerror="true" dir="${basedir}" classname="org.jasig.portal.tools.DlmFragmentPusher">
			<classpath>
				<pathelement path="${build.home}/WEB-INF/classes"/>
				<path
            <classpath refid="compileuportal-impl-full.classpath" />
			</classpath>
		</java>
	
        </java>
    </uportal-impl-macro>
</target>

	<target name="pushdlm" description="Pushes dlm fragments data to db" depends="pushdlmgen">
   		 <antcall target="db">
			
        <param name="usedata" value="-d"/>
			
        <param name="datafile" value="/properties/db/dlm-data.xml"/>
			
        <param name="droptables" value="-nD"/>
			
        <param name="createtables" value="-nC"/>
		    </antcall>
	</target>

A sample dlm.xml file is provided in properties/dlm.xml.

...