ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vittoria, Felice" <Felice_Vitto...@bmc.com>
Subject RE: VSSGET label
Date Wed, 22 Aug 2001 15:25:38 GMT
Silly question but does the label exist?  Also, can you successfully extract
the files using the command-line?

-----Original Message-----
From: Euan Guttridge [mailto:EGuttridge@buildonline.com]
Sent: Wednesday, August 22, 2001 10:14 AM
To: 'ant-user@jakarta.apache.org'
Subject: VSSGET label


Hi,

I am using v1.4beta2. My Ant build script VSSGETs files from
VisualSourceSafe, compiles and Jars. The build is fine until I specify a
label in the VSSGET. The build always fails on or soon after encountering a
"[vssget] Version not found". The VSS db has been analyzed, fixed and
verified for inconsistencies etc..

Below is a final section of the build output and below that the script. Any
ideas why the label should cause it to fail?

Thanks,
Euan.

   [vssget] $/Buildux02 (new
   [vssget]
dev)/source/java/com/buildonline/architecture/request/validation/par
sexml:
   [vssget] Getting BaseType.java
   [vssget] Getting RequestParseException.java
   [vssget] Getting RequestXMLParser.java
   [vssget]
   [vssget] $/Buildux02 (new
dev)/source/java/com/buildonline/architecture/servl
et:
   [vssget] Getting BOLServlet.java
   [vssget] Getting Utf8HttpServletRequest.java
   [vssget]
   [vssget] $/Buildux02 (new
   [vssget] Version not found
   [vssget]
dev)/source/java/com/buildonline/architecture/servlet/permission:
   [vssget] Getting AccessPermission.java
   [vssget] Getting CompositePermission.java
   [vssget] Getting ContextPermission.java
   [vssget] Getting Permission.java
   [vssget] Getting PermissionException.java
   [vssget] Getting ProjectPermission.java
   [vssget]

BUILD FAILED

D:\test4.xml:36: Failed executing: "C:\Program Files\Microsoft Visual
Studio\VSS
\win32\ss" Get "$/Buildux02 (new dev)/source/java/com" -GLD:\java\src -I-N
-R -V
Lbuild5 -Ysmith,smithpwd
        at
org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET.execute(MSVSSGET.
java:185)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:164)
        at org.apache.tools.ant.Target.performTasks(Target.java:182)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 12 seconds

***************************

<project name="test_dv1" default="getandcompile">

	<!-- Define Variables -->
	<property name="src" value="d:\temp_euan\java\src"/>
	<property name="build" value="d:\temp_euan\java\build"/>
	<property name="dist" value="d:\temp_euan\java\dist"/>
	<property name="vssdb" value="d:\polvss"/>
	<property name="sss" value="C:\Program Files\Microsoft Visual
Studio\VSS\win32"/>
	<property name="vssproject" value="/Buildux02 (new
dev)/source/java/com"/>
	<property name="build_label" value="build10"/>
	
		
	<target name="clean">
		<!-- Delete the ${build} and ${dist} directory trees -->
		<delete dir="${build}"/>
		<delete dir="${dist}"/>
		<delete dir="${src}"/>
	</target>
	
	<target name="init">
		<!-- Create the time stamp -->
		<tstamp/>
		<!-- Create the build directory structure used by compile
-->
		<mkdir dir="${build}"/>
	</target>
	
	<target name="getvss">
		<vssget localpath="${src}"
				serverPath="${vssdb}"
				ssdir="${sss}"
				label="${build_label}"
				recursive="true"
				login="smith,smithpwd"
				vsspath="${vssproject}"
				writable="false"/>
	</target>
	
	<target name="compile">
		<!-- Compile the Java code from ${src} into ${build} -->
		<javac srcdir="${src}" destdir="${build}">
		</javac>
	</target>

	<target name="makedist">
		<!-- Create the distribution  directory -->
		<mkdir dir="${dist}/lib"/>
		<!-- Put everything in ${build} into the
EuansTestXML-${DSTAMP}.jar file -->
		<jar jarfile="${dist}/lib/${build_label}-${DSTAMP}.jar"
basedir="${build}"/>
	</target>
	
	<target name="getandcompile"
		depends="clean, init, getvss, compile, makedist">
	</target>

</project>

	
	
	



Euan Guttridge 
Systems Admin

BuildOnline
Hamilton House
Mabledon Place
London
WC1H 9BB

Ph:	+44 (0)20 7836 2883
Fax:	+44 (0)20 7836 2886
www.BuildOnline.com

'Save Time, BuildOnline'


This email and any files transmitted are confidential and intended
solely for the use of the individual or entity to which they are
addressed. If you have received this email in error, please notify
BuildOnline: Tel: +44 (0)20 7836 2883

****************************************************************************
******

Mime
View raw message