Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] CVS Authentication

The eclipse.ini was ok, but doesn't work, so let me send all files (so small)

CQUERY

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"; resourceMap="http://localhost/buck/relat1.rmap"; properties="file:/home/ccardozo/relat1.properties"> <cq:rootRequest name="relatorios-proposta" versionDesignator="[PRJ_BANIF_CDC_INTELLECTOR,PRJ_BANIF_CDC_INTELLECTOR]" versionType="String"/>
</cq:componentQuery>


RMAP (relat1.rmap)

<?xml version="1.0" encoding="UTF-8"?>
<rmap
	xmlns="http://www.eclipse.org/buckminster/RMap-1.0";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0";
	xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0";>

	<searchPath name="default">
<provider readerType="cvs" componentType="eclipse.project" mutable="true" source="true"> <uri format=":pserver:${cvs.user}:${cvs.password}@192.168.0.166:/cvsroot/cvsteste,relat/{0}">
				<bc:propertyRef key="buckminster.component" />
			</uri>
			<versionConverter type="branch" >
			</versionConverter>
		</provider>
	</searchPath>
	<locator searchPathRef="default" pattern="relatorios-proposta" />
</rmap>


PROPERTY (relat1.properties)

cvs.user=claudiocardozo
cvs.password=xxxxxxx


regards,
Claudio



Thomas Hallgren escreveu:
Claudio Cardozo wrote:
Thomas, sorry by disturbing...

I tryed:

a) using option to JVM, like: -Duser.cvs=claudiocardozo -Duser.password=xxxx in file eclipse.ini; doens't work
If you use eclipse.ini, make sure there are no empty lines and that each option is on a line of its own. Also, make sure you put them after -vmargs. Eclipse.ini is sensitive to empty lines and linebreaks.

-vmargs
-Duser.cvs=claudiocardozo
-Duser.password=xxxx

should do it.


b) a properties file, like: (as I know in -Duser.properties format)
cvs.user=claudiocardozo
... doesn't work
How do you incorporate this property file? From the CQUERY?



d) a property file, like supplied in cquery
<property key="claudiocardozo" value="xxxxx" />
... doesn't work

The CQUERY can either appoint a file like the one you use in b), or it can embed properties.

Here is a cquery that appoints a file:

<?xml version="1.0" encoding="UTF-8"?>
<componentQuery xmlns="http://www.eclipse.org/buckminster/CQuery-1.0"; properties="file:/temp/some.properties">
   <rootRequest name="sample"/>
</componentQuery>

Here is a cquery that embeds properties:

<?xml version="1.0" encoding="UTF-8"?>
<componentQuery xmlns="http://www.eclipse.org/buckminster/CQuery-1.0";>
   <rootRequest name="sample"/>
   <property key="password.cvs" value="xxxxx"/>
   <property key="user.cvs" value="roger"/>
</componentQuery>

Regards,
Thomas Hallgren



Back to the top