[opencms-dev] IDE Integration

Christoph Fröhlich cfauto at folge2.de
Fri Jun 27 06:43:19 CEST 2014


We do it the same was as iruggeri.
To trigger the sync process from the command line we use the following ant target.

Regards
Christoph
----------------------------------------------------------------------------------------------

	<target name="sync" description="Builds the module and synchronize with the OpenCms VFS" depends="sync-dir">

		<!-- für windows -->
		<echo file="sync.bat">
			<![CDATA[
						wget --cookies=on --keep-session-cookies --save-cookies=cookie.txt -oresponse.txt -Oindex.html --post-data="ocUname=${opencms.username}&ocPword=${opencms.password}&login=true" ${opencms.baseurl}system/login/index.html
						wget --load-cookies=cookie.txt -oresponse.txt -Oindex.html "${opencms.baseurl}system/workplace/commons/synchronize.jsp?action=confirmed&ok=Ok"
						]]>
		</echo>
		<exec executable="sync.bat" os="Windows 7, Windows 8">
			<arg value="" />
		</exec>

		<!-- für mac os -->
		<echo file="sync.sh">
			<![CDATA[
						#!/bin/sh
						curl -c cookie.txt -o response.txt -d ocUname=${opencms.username} -d ocPword=${opencms.password} -d login=true ${opencms.baseurl}system/login/index.html
						curl -b cookie.txt -o response.txt ${opencms.baseurl}system/workplace/commons/synchronize.jsp?action=confirmed&ok=Ok
				]]>
		</echo>

		<exec executable="sh" os="Mac OS X, Linux">
			<arg value="sync.sh" />
		</exec>
		
		<delete file="sync.bat" quiet="true" />
		<delete file="sync.sh" quiet="true" />
		<delete file="response.txt" quiet="true" />
		<delete file="cookie.txt" quiet="true" />
		<delete file="index.html" quiet="true" />
	</target>

Am 25.06.2014 um 08:42 schrieb lruggeri at maticad.it:

> Hi,
> I don't know if it is still the best practice but maybe it can help.
> I use Eclipse to write code and then sync the RFS with VFS using the
> synchronization feature (Workplace Tools -> Synchronization settings) in
> OpenCms Administration view.
> 
> Bye
> 
> -----Messaggio originale-----
> Da: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
> Per conto di dhaliwaljee
> Inviato: martedì 24 giugno 2014 20.54
> A: opencms-dev at opencms.org
> Oggetto: [opencms-dev] IDE Integration
> 
> HI,
> I want to use Develop OpenCMs 8.5 with Eclipse, I read that  wiki
> <http://www.opencms-wiki.org/wiki/Eclipse_integration>  article but its not
> very helpful. Some links are broken and does not provide good information
> about it.
> If anybody know then please send me detailed steps about it. You can also
> send me information about any other IDE.
> 
> Thanks
> 
> 
> 
> --
> View this message in context:
> http://opencms.996256.n3.nabble.com/IDE-Integration-tp24280.html
> Sent from the OpenCMS mailing list archive at Nabble.com.
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To change your
> list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 




More information about the opencms-dev mailing list