I've got a strange one.

I wrote a console application called IsAdmin that displays the domain
account that IsAdmin is running under and whether or not the account is
consider an administrator on the computer.

When I run IsAdmin on my PC, it correctly identifies my login ID and that I
was an administrator.

I copied IsAdmin to the server where I have CruiseControl.Net (CCNet) and
logged in using the same domain account that the CCNet service is logged in
under. IsAdmin again correctly identifies the domain account and the fact
that it is an administrator on the PC.

When I run IsAdmin under a <exec> task in a NAnt script run by CCNet, it
correctly identifies the domain account but the strange part is that it says
that the account is NOT and administrator.   

This is exactly the behavior that I have been running into as I developed
the NAnt script.  It could not work with files unless they had the Everyone
Read permission applied to them even though the files had Administrator Read
access already.

Weird.

Any ideas?

When I get to work, I will try to run a short NAnt script without getting
CCNet involved to see if it is being caused by CCNet somehow.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Archer
Sent: Tuesday, February 27, 2007 10:57 AM
To: Daniel Blendea; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] fileset exclude / include priorities

Yes, these have always been a struggle with me too. I asked on the list
if someone could explain/document better how they worked, and if there
was any precendence etc, but so far no info is forth coming. I may just
have to drill into the code/tests myself... the horror!

BOb


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Blendea
Sent: Tuesday, February 27, 2007 2:55 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] fileset exclude / include priorities

On 2/26/07, Alan Guedeney <[EMAIL PROTECTED]> wrote:
>
>
>  Try (Notice the placement order of include and exclude):
>
> <copy todir="${dest.dir}" overwrite="true" >
>      <fileset basedir="${src.dir}">
>           <include name="**.jpg" />
>           <exclude name="**/Documentation/" />
>       </fileset>
>  </copy>
>

Nop, it didn't worked.
I tried to set the <include> first, then <exclude> and the other way
around. The same result.

Daniel

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to