RE: [Draconet-users] How do I use dracocli with more than one server?

2004-03-11 Thread David Reed
David,

As I understand the client, you must have multiple config files (one per
target server) and specify the appropriate config file on the command
line, using the /config:file switch.  You'll, of course, want to wrap
a batch file/shell script around the complexity to eliminate the need to
re-key the path to the config every time.  ;)

I think this limits the ease-of-use of the Draco client in a multiple
build server environment... but I just work around it by using the XP
Remote Desktop client to r/c the various build servers and just leave
those little windows open all the time instead of trying to keep all the
admin tasks centralized on my workstation.

Being able to specify the target server on the command line would
complicate the remoting code, but it would be a snifty feature.


C:\Sandbox\dracocli /?

Usage:
dracocli [/a] [/nfb] [/?] [/config:filename] /start:buildName
/stop:bui
ldName /status:buildName

Parameters:
/a  Invoke operation asynchronously
/nfbDo not force build. (Force build is the
default.)
/config:file  Loading remoting configuration from file
/start:buildName  Build buildName
/stop:buildName   Stop building buildName
/status:buildName Show current build status for buildName

/?  Show usage information

dracocli.exe is a commandline interface to the Draco.NET remote server.



 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:draconet-users-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 5:09 AM
 To: [EMAIL PROTECTED]
 Subject: [Draconet-users] How do I use dracocli with more than one
server?
 
 Hi,
 
 We now have Draco running on separate servers for separate projects.
How
 do
 I configure dracocli to access each server?



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70alloc_id638op=click
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


RE: [Draconet-users] Vault and Draconet?

2004-07-12 Thread David Reed

 -Original Message-
 From: Bryan D. Andrews
 Sent: Monday, July 12, 2004 9:38 PM
 To: [EMAIL PROTECTED]
 Subject: [Draconet-users] Vault and Draconet?
 
 Anyone got this going? Any advice or suggestions?

Yeah, Subversion and Draco.

Actually, it'd be nice if you'd be the guinea pig, since we're going to
switch in the next couple weeks...  :)  At least until they hold the
PVCS gun to my head and pull the trigger.

Anybody out there using Subversion with Draco?  Successfully?  ;)

[I installed the Vault thang a couple times, and it ate VS.NET 2k3, more
or less.  I like the special feature with Vault which won't let you
run it side-by-side with VSS, not even to switch back and forth.  All or
nothing is great way to railroad prospective customers...]


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


Problems with NAnt.Solution task [was RE: [Draconet-users] Vault and Draconet?]

2004-07-17 Thread David Reed
  webmap
  map
  url=http://localhost/myProject/myProject.vbproj;
  path=C:\proj\myProject.vbproj /
  /webmap
  /solution
 
  nunit2
  formatter type=Plain /
  test assemblyname=bin/my_Tests.dll /
  /nunit2
 
  /project
 
 
 
  -Original Message-
  From: Nick Robinson [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 16, 2004 12:35 PM
  To: [EMAIL PROTECTED]
  Subject: RE: [Draconet-users] Vault and Draconet?
 
  You would need to modify the sourcecode to disable the deletion of
the
  files.  However, this is a simple step.  Take a look at
  BuildRunner.BuildModule.  Towards the end, there is a piece of code
that
  looks like this:
 
  try {
  // Clean up our mess.
  if (Directory.Exists(sourceDir)) {
  Directory.Delete(sourceDir, true);
  }
  } catch {
  // Do nothing.
  }
 
  Comment the two Directory referencing lines, and you should find
your
  temp
  dirs remain intact after build completion.
 
  I am curious, does your build have relative files or absolutes?
What is
  the
  error you get from Draco?
 
  nick.robinson
  site  : www.fromconcept.co.uk
  blog  : www.fromconcept.co.uk/weblog.aspx
  draco : www.sourceforge.net/projects/draconet
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Behalf Of
Bryan
  D.
   Andrews
   Sent: 16 July 2004 14:31
   To: [EMAIL PROTECTED]
   Subject: RE: [Draconet-users] Vault and Draconet?
  
  
   So I got this working as per James Guerts blog entry, but I am
having
   problems with the build.
  
   I know that I have problems with the build with VS if I do not Get
   Latest and mark all Writable. And it actually looks like I am
   downloading with the files set to writable, but still have
failures
  with
   the build.
  
   If I run the nant file manually after pulling down the files
through
  the
   vault, it works great.
  
   Basically I am asking has anyone else had trouble when building
with a
   NANT script that normally builds fine?
  
   Is there a way to keep the temp files from deleting so I can try
to
  run
   the nant script manually from that location?
  
   Thanks!
  
   -Original Message-
   From: Bryan D. Andrews
   Sent: Tuesday, July 13, 2004 7:23 AM
   To: [EMAIL PROTECTED]
   Subject: RE: [Draconet-users] Vault and Draconet?
  
   Yes we run Draco and Subversion successfully. Works great and out
of
  the
   box. Wish Vault and Draco did:
  
   I am working from James Guerts blog entry now:
  
   http://blogs.biasecurities.com/jim/archive/2004/05/10/501.aspx
  
   Hopefully this will work...
  
  
  
   -Original Message-
   From: David Reed [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 12, 2004 11:32 PM
   To: [EMAIL PROTECTED]
   Subject: RE: [Draconet-users] Vault and Draconet?
  
  
-Original Message-
From: Bryan D. Andrews
Sent: Monday, July 12, 2004 9:38 PM
To: [EMAIL PROTECTED]
Subject: [Draconet-users] Vault and Draconet?
   
Anyone got this going? Any advice or suggestions?
  
   Yeah, Subversion and Draco.
  
   Actually, it'd be nice if you'd be the guinea pig, since we're
going
  to
   switch in the next couple weeks...  :)  At least until they hold
the
   PVCS gun to my head and pull the trigger.
  
   Anybody out there using Subversion with Draco?  Successfully?  ;)
  
   [I installed the Vault thang a couple times, and it ate VS.NET
2k3,
  more
   or less.  I like the special feature with Vault which won't let
you
   run it side-by-side with VSS, not even to switch back and forth.
All
  or
   nothing is great way to railroad prospective customers...]
  
  
   ---
   This SF.Net email sponsored by Black Hat Briefings  Training.
   Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital
   self defense, top technical experts, no vendor pitches, unmatched
   networking opportunities. Visit www.blackhat.com
   ___
   Draconet-users mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/draconet-users
  
  
  
  
   ---
   This SF.Net email sponsored by Black Hat Briefings  Training.
   Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
   digital self defense, top technical experts, no vendor pitches,
   unmatched networking opportunities. Visit www.blackhat.com
   ___
   Draconet-users mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/draconet-users
  
  
  
  
   ---
   This SF.Net email is sponsored by BEA Weblogic Workshop
   FREE Java Enterprise J2EE developer tools!
   Get your free copy of BEA

RE: Problems with NAnt.Solution task [was RE: [Draconet-users] Vault and Draconet?]

2004-07-17 Thread David Reed
 Anyone see any issues with this?

Yes.  How are you going to work around build collisions when the same
build is launched within seconds/minutes of each other that result is
quasi-parallel builds?  Unless there are new features in your custom
build which prevents the same build from running multiple times
concurrently, this would be a problem in my multi-developer environment.

I imagine that the original reason for the uber-clean temporary
directory build is to prevent just that sort of overlapping chaos.  It
was a good start...  But since we poll every five (5) minutes, my
developers manage to check things into source control *just before* and
*just after* a build starts; it must be a God-given talent that many of
them have: build clairvoyance.

I *really* wish that Draco would only permit a given build to run a
single instance at a time.  If Build X is already running, subsequent
check-ins for Build X should queue up BEHIND it, waiting, and then be
built later, once the currently running build/version instance
succeeds/fails...

The soon-to-be-released feature which limits running builds to N
arbitrary total number is a good start (for limiting build server
overload), but not exactly what I would want, because it would still
allow Build X to be running N times (blocking out Build Y completely
until one of Build X's runs completes).

It also still allows for the (remote?) possibility for later
check-ins/builds to succeed BEFORE earlier check-ins and then be
overwritten by the earlier check-in/build when it finally finishes.  Can
you say race condition?  :)

In case you're wondering why this would happen to me a lot, all other
things being equal on the build server, it is because many of our builds
include deployment of stored procedures to database servers that are
actively in use by developers and analysts, which occasionally results
in delays/blocking/whatever for some builds but not others.

Of course, I could be completely misunderstanding the unnamed
soon-to-be-released feature.  Please educate me if I'm ignorant (on this
or any other topic :).

If you do not use Draco to do just-in-time CI builds, but use it only to
schedule timed builds that have no risk of overlapping (and provide
nifty success/failure notification), then you'll be fine.  I may join
you in that blissful state some time soon...



 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:draconet-users-
 [EMAIL PROTECTED] On Behalf Of Bryan D. Andrews
 Sent: Saturday, July 17, 2004 9:52 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems with NAnt.Solution task [was RE:
[Draconet-users]
 Vault and Draconet?]
 
 Unless there are other good ideas here, what I would like to do is
 update draco to allow me to specify the directory where it is going to
 download (unless this is already a feature then GREAT).
 
 We are using vault (and the custom draco build for vault), so what I
 would like to do is be able to specify my Root build folder in the
 draco.exe.config, then specify the folder based on the repository name
 and folder path that is specified currently in my config file:
 
 
 
   vault
 
   buildRootd:\DracoBuilds/buildRoot
 !--
   URL to the repository.
 --
 urlhttp://source.myapp.com//url
 userxxx/user
 passwordxxx/password
 repositoryMyApp/repository
 folderpath$/MyApp_Core/folderpath
 
   /vault
 
 Then I can have a switch that says whether or not to delete the files
 after building.
 
 This should allow us to get around the issue of webmaps because it
will
 build in the same place each time, and it will provide a live test
 environment if desired.
 
 Anyone see any issues with this?


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21alloc_id040op=click
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


RE: Problems with NAnt.Solution task [was RE: [Draconet-users] Vault and Draconet?]

2004-07-17 Thread David Reed
 N. I want CI. Damn. Is it possible to just make draco run on a
 single thread to solve this problem?

Not TMK.  I'd be happy to learn otherwise.  You and I are at the foci of
many tangential feature collisions in several otherwise well-designed
apps.  ;)  I love Draco and I love NAnt; I even like Visual Studio .NET
2k3 most of the time -- but all together (for web apps), they no workie
so well together.

I would still love to know why those wacky M$ developers decided to add
all these goofy features for web apps, when all they really need to be
is a library project...  Most of them seem to be ill-conceived, IMO.

 If not, what are my options to getting the solution and the nant task
 synched consistently. Is slingshot still around?

Every time someone asks about slingshot/ on the NAnt lists, they are
informed that it is deprecated, unsupported and the hapless user should
download the latest nightly build or current version from CVS and try
out the solution/ task instead.  :|

A little script/ task to do find/replace in the project file(s) to
substitute Web for Local, and in the solution file http://; for
String.Empty and / for \ may work better for you than it did for
me...?  And maybe the solution/ task will even eat the resulting
munged *.csproj and *.sln files without further complaint as containing
relative paths?  And maybe there really is a Santa Claus?

Doing this with CSC really isn't so bad, so long as the solution
maintainer(s) remember that they *must* update the build script every
time they add/remove references.  How often does that kind of references
update really occur for you?  [Just sharing my experiences trying to do
the same thing.  Like you I *really* wish that both developers and CI
could build from exactly the same files without change or
hokey-pokey...]


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21alloc_id040op=click
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


RE: Problems with NAnt.Solution task [was RE: [Draconet-users] Vault and Draconet?]

2004-07-17 Thread David Reed
 Hehe, well I just posted on the nant list about relative paths in
 webmap. This is the most obvious solution and maybe I'll look at the
 nant source for this task and see what I can do.

Good luck.  I'll watch the fireworks with interest.  There are some
smarter people than I on that list, so perhaps they can imagine a
solution that I can't at the moment.

 By the way what script were you referring to?
 
 Basically the solution file has to converted from
 http://localhost/mayapp to myapp/myapp.vbproj or whatever then the
 proj file changed from web to local and I think that is it.

Yes.  Something like the following script/ task is what I used before,
and the output worked for me using DEVENV.EXE (I don't have immediate
access to the project history at the moment, but I'll look for it later
if you have trouble):

script language=C#code![CDATA[
public static void ScriptMain( Project project )
{
// UNDONE: Replace the pseudo code below with working C#.
/*
 * I like to test in a console app or using NUnit on an assembly
first,
 * because, like all good PHBs, I'm terribly Intellisense dependent.
;)
 */

// 1. Read the solution file into a variable, using whichever
System.IO
//class you like best.
// 2. Replace http://; with String.Empty and / with \.
// 3. Overwrite the solution file with the munged version.

// 4. Read each project file into a variable, using whichever
System.IO
//class you like best.
// 5. Replace Web with Local.
// 6. Overwrite each project file with the munged version.

// ?. Use the solution task to build the converted solution/projects
and
//hope for the best.  (I didn't do this, I used exec/ to call
//DEVENV.EXE.
}
]]/code/script

The only reason I didn't continue doing this was because calling
DEVENV.EXE with exec/ was grossly lacking in helpfulness when a build
failed...  It only reported a build failure (which was the obvious
part), but not why specifically...

 By the way I think webprojects (loaded via http) are history in
Whidbey.

Amen, brother!  Go tell it on the mountain.


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21alloc_id040op=click
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


RE: Problems with NAnt.Solution task [was RE: [Draconet-users] Vault and Draconet?]

2004-07-17 Thread David Reed
 Curiously enough I think that a relative path is working. I kinda took
 it for granted that it did not from the comments here and the other
 posting.

Felicitations.

 I have another question though. Why would code such as this build on
 VS.Net then fail on the draco nant build:
 
 For i As Integer = 0 To value.Count - 1
 
 If I declare the integer first it works in draco.

No idea, since I don't use VB.NET, but NAnt solution/ may not be
importing all the same things that VS.NET does...  It does seem to me
that because the NAnt crew are all native C# developers, the VB support
is usually a little more fragile than it might otherwise be.  I vaguely
recall some reports of bugs with the vbc/ task...

What's the exact compiler error?


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21alloc_id040op=click
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users


RE: [Draconet-users] Question about NAnt integration and compiling C# code

2004-12-09 Thread David Reed
 -Original Message-

[snip]
 Anyone have any ideas on how to get around this.  When I build I need
to
 register and unregister on my development machine but it is not
absolutely
 necessary on the continious integration machine although .  It doesn't
 have
 a problem with the 'ProjectDir', 'OutDir' or 'TargetPath' macros.  I'm
not
 for sure how to approach this.  I can delete the pre and post build
event
 and just run the bat files manually but I really don't want to do that
 because I'm lazy. :)
[snip]

The SolutionTask is one of my hobby horses.  It's been broken since the
day before they invented it.  I don't use it; I won't use it.

insert me doing my best impression of the Frenchman from Monty Python's
Quest for the Holy Grail in the direction of SolutionTask.
Elderberries and all. /

In the unlikely event that me doing Monty Python doesn't cause you to
Run away!  Run away! from the SolutionTask, I'll tell you that I use
CscTask to compile all of our assemblies and maintain a very simple
inclusion list of source as part of each build script, etc.

Here's why: In a spurt of optimism about six months ago, I briefly
experimented with using xsl and simple string operations to manipulate
the sln and csproj files so that the wacky SolutionTask would work on
them as Local projects instead of Web projects, because SolutionTask was
horribly broken with respect to Web projects.  I then decided that it
was easier to just convert them all to Local projects instead of Web
projects 100% of the time instead...  Which is how we develop our web
apps now; much nicer than before, so some good did come of it.  But then
something else in SolutionTask broke for me which is too painful to
recall, and I gave up again on the SolutionTask...

[Don't even think about trying to use ExecTask to call devenv.exe
directly.  That's even worse than trying to use SolutionTask, if you can
believe it.]

The SolutionTask is the one reason that I'm looking forward to MSBuild.
Because SolutionTask offends me.  ;)  NAnt with CscTask does me just
fine right now, but I find the whole exercise of trying to reinvent
devenv.exe to be wasteful, counterproductive and well, nevermind - I'll
keep it professional.  :)  Of course, I'm emotionally preparing myself
to be woefully disappointed by MSBuild (as with any version 1 M$
product).

Here are some options.  You could:

1. Dive into the NAnt code and implement the unimplemented macro.
2. Strip the offending line(s) out at run time (what effect this will
have on build success, I don't know).
3. Switch to using csc to build your assemblies.
4. Ask the NAnt developers to hurry up already.  :P

In the event that this post wasn't helpful, at least you have my
sympathies.  And I feel better.  I may not even need that extra therapy
session this week.  Heh.


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
Draconet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/draconet-users