Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Backup and Compiling with Build Forge

Hi,

I'm trying to make a backup a folder before making a move in BF and I have trouble placing the name of the folder using the current date.

We also need to compile a project using Visual Studio aspnet_compiler.exe into a step.

Know how to do this?

Thanks in advance!!!!!!!!!!!!

0 votes



5 answers

Permanent link
the feature you want to look into is .date

http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/dotcmd_date.html



use the example in the docs and in your mkdir use the $TIMESTAMP variable that was created by the example.

0 votes


Permanent link
the feature you want to look into is .date

http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/dotcmd_date.html



use the example in the docs and in your mkdir use the $TIMESTAMP variable that was created by the example.


I'm trying this way

$FolderName = .date %d-%b-%Y.%H:%M:%S
echo FolderName
.mkdir FolderName

Error Mesagge
.date is not recognized as an internal or external command

whats wrong?

0 votes


Permanent link
the example isn't clear.

create an environment variable in your environment group for the project. set the value of that variable to ".date %d-%b-%Y.%H:%M:%S". Reference that variable later.

.date isn't a dot command to use in a stepcommand box. It's a special environment variable value. At least that's the way you need to use it here.

0 votes


Permanent link
the example isn't clear.

create an environment variable in your environment group for the project. set the value of that variable to ".date %d-%b-%Y.%H:%M:%S". Reference that variable later.

.date isn't a dot command to use in a stepcommand box. It's a special environment variable value. At least that's the way you need to use it here.


I assign the variable in this way:

.set env HelloWorldEnvironment "FolderName = .date %d-%b-%Y.%H:%M:%S"

and the result of (echo FolderName) is:
.date d-b-H:S

Do you have any example?

0 votes


Permanent link
when I say 'set the value of that variable to ".date %d-%b-%Y.%H:%M:%S"' I don't mean to use .set

actually put that .date string in the value part of the environment variable in the environment group object.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 10 '11, 3:17 p.m.

Question was seen: 4,761 times

Last updated: Aug 10 '11, 3:17 p.m.

Confirmation Cancel Confirm