Dina,
You're not actually executing the "runGetLatest" target.
Try changing the build target like this:
<target name="build" depends="runGetLatest">
...
</target>
This will cause the "runGetLatest" target to get executed when you run the
"build" target.
Alternatively, you could specify both the "runGetLatest" and "build" target
on the command line:
NAnt.exe -f:<your build file> runGetLatest build
Hope this helps,
Gert
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of DinkaYa
Sent: donderdag 17 mei 2007 11:00
To: [email protected]
Subject: [NAnt-users] vssget is not working
Hi,
I'm very new to NAnt, I'm trying to do some basic staff with NAnt, read this
article here: http://www.15seconds.com/issue/040621.htm
Having trouble with vssget, it doesn't see to be doing anything, the build
goes successfully, no error messages or anything, but I don't see that it
gets the latest version from VSS.
Here is what I see in the command line:
NAnt 0.85 (Build 0.85.1583.0; net-1.0.win32; nightly; 5/2/2004) Copyright
(C) 2001-2004 Gerry Shaw NAnt Team
Buildfile: file:///C:/projects/BuildingSolution/firstbuild.build.xml
Target(s) specified: build
build:
clean:
[delete] Deleting 9 files.
[solution] Starting solution build.
[solution] Building 'BuildingBL' [DEBUG]...
[solution] Building 'BuildingUI' [DEBUG]...
[solution] Building 'BuildingTest' [DEBUG]...
[copy] Copying 2 files to
'c:\builds\buildingsolution\latest\'.
BUILD SUCCEEDED
Total time: 4.8 seconds.
Here is what I have in the build file xml:
<!-- Targets -->
<!-- runGetLatest will get the latest version of code from vss -->
<target name="runGetLatest">
<vssget
user="dina"
password=""
localpath="C:\Projects\BuildingSolution"
recursive="true"
replace="true"
writable="true"
removedeleted="false"
dbpath="S:\W6\SourceSafe\Customers2006\srcsafe.ini"
path="$/Test/BuildingSolution"
/>
</target>
<!-- Clean target will delete the current version -->
<target name="clean" description="remove all generated files">
<delete>
<fileset basedir="${Build.OutputFolder}Latest\">
<includes name="*.*"/>
</fileset>
</delete>
</target>
<!-- build will trigger main build -->
<target name="build" description="compiles the source code">
<call target="clean"/>
<solution solutionfile="${Solution.Filename}"
outputdir="${Build.OutputFolder}latest\"
configuration="${Solution.Configuration}"/>
</target>
<!-- End Targets -->
--
View this message in context:
http://www.nabble.com/vssget-is-not-working-tf3770601.html#a10660531
Sent from the NAnt - Users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users