I've been thinking about writing some ASP.Net 2.0 Tasks. I have the following things I want to do.- Add support for a aspnet_compiler task.- Start/stop/restart the dev web server (WebDev.WebServer.EXE) with a new task
- Validate dependant files (xml, xslt, log4net, etc.)Would anyone else be
If you are on the latest nightly build I would call that a bug (if you are
using an older version then there was a bug like that was fixed a while ago;
post .84)... Whose bug, I'm not quite sure...
Probably mine, err ... I mean, NAnt...
:)
- Original Message -
From: Castro, Edwin
Actually, the nantschema/ task will output a schema for any, and all,
tasks that are loaded. This includes any custom tasks that are loaded with
loadtasks/. It was on the nantschema/ todo list to allow creating
schemas for only a given assembly, but that was not been coded yet.
- Original
In my opinion, this can lead to assumptions about the build environment. It
is more descriptive, and easier to catch mistakes when build on different
machines, if the loadtasks/ (for non-core task) is put in the build file.
You can define the path relative to the build dir, or to the nant
No idea when this would get worked on, but the implementation should be
pretty simple.
Most of the code is written to support creating a schema of arbitrary Type
objects. But be careful as loading types means loading assemblies, and
loading the assembly in the appdomain may cause the task,
Please, ask the NantRunner list... http://nantrunner.sf.net
(The nant archive links can be found on http://nant.sf.net/wiki)
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free
Title: Ftp task?
There is an scp/* task in nantcontrib...
That is a secure transfer for files. It also allows for compression during the
send. It pretty much just wraps scp.exe.
There was also talk of a webdav/ task being
pulled from the solution/ code, but I don't think anyone ever did it.
I have forward this to the nant-users list, it would be a better place to
ask questions. I am leaving for the weekend... :)
If you are not subscribed, please do. http://nant.sf.net
- Original Message -
From: Chen, CJ [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 09, 2004
Title: A task to find out assembly info?
No, but there are functions which will do that.
These require a recent nightly build (http://nant.sourceforge.net/builds/)...
http://nant.sourceforge.net/nightly/help/functions/index.html#Assembly
- Original Message -
From:
Jiho
An easy way, would be to use the uptodate task to check if any headers have
changed, then touch (to update the timestamp) all your cpp files before your
compilation step. This will cause the compiler to recompile.
http://nant.sourceforge.net/nightly/help/tasks/uptodate.html
There is no question that this should be handled automatically, but that
requires somebody pre-process the source files and generate additional
dependencies. It would nice if the compiler took care of that, or we would
need to parse the source files in some task, collect the new dependencies,
and
Take a look at the archives for messages about remote MSI install, and NTFS
acls stuff. I believe everything you need had been discussed before.
Mail-archive.com has nant archives; the sf.net stuff kinda works, but not
really.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00633.html
-
http://mail-archive.com(If your
favorite mail listisn't subscribed already, do it... )
See the nant wiki for more info http://nant.sourceforge.net/wiki/index.php/ListArchiveSearches
- Original Message -
From:
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
http://nant.sourceforge.net/nightly/help/tasks/foreach.html
Loops over a list.
foreach item=String in=${colors} delim=, property=color
echo message=${color} /
/foreach
with NAnt -D:colors=blue,red
Or you can use the functions stuff in the nightly builds.
HTHs
Scott
- Original Message
PROTECTED]
To: 'Scott Hernandez' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: Curtis Zarger [EMAIL PROTECTED]
Sent: Monday, May 10, 2004 11:52 AM
Subject: RE: [Nant-users] calling a task multiple times
Scott,
THX for the reply. I've tried the foreach task. My problem there is that
the 'property
It would definitely be a nice feature to say that a certain includes/ is
required and should throw an error if no match on the filesystem is found.
But no, this should not be the default behavior. The problem in the past has
been with wildcard expressions and the fileset implementation not easily
I'm afraid there isn't much we control here... I would suggest hitting up
sf.net support, or checking on the mailman site for a user guide...
:(
Don't forget to look here too.
https://lists.sourceforge.net/lists/listinfo/nant-users
BTW. A digest seems to be sent when the message (digest) reach
From the docs:
http://nant.sourceforge.net/nightly/help/fundamentals/expressions.html
Using the logical"and" operator you would
write ${expr1 and expr2}; if you are using a
nightly build with _expression_ support.
Otherwise you are out of luck and need to make a
single property to check.
-
From:
Noah
Davidson
To: 'Scott Hernandez'
Sent: Monday, April 19, 2004 2:19
PM
Subject: RE: [Nant-users] if condition on
tasks
Thanks. Also if
I write a custom task, Do I have to do anything to use the if ${cond} from
nant on my custom task, or do I have
Hi Steve,
The short answer is that people seem to be busy, and therefore there is no
immediate plan for a release. This means that a release may be a while off.
I think, based on the feedback we have from our nightly builds, that we
should probably put out a beta 1 of .85. This could be, for all
I believe it depends on how you select the files into the zip. I could run a
test, but I think this will make sense.
[please excuse my xml shorthand]
zip ...
fileset dir=foo/temp
includes=**/*/
//
vs.
zip ...
fileset dir=foo
includes=temp/**/*/
//
This is actually true a lot of places
+1 on WebDAV tasks. This is something that will be more and more useful in
the future. It sounds like a lot of new server projects are providing webdav
file access.
In fact, I believe one of the deployment options for Subversion is via
webdav. This would really simplify the requirements to do a
Pete,
Using the new expression support that is the nightly builds, and will be in
.85, you can do this...
project
property name=var value=val/
property name=val.var value=hi/
echo message=${property::get-value(var + '.var')}/
/project
C:\src\sf.net\nantbin\nant -f:expand.xml
NAnt 0.85 (Build
Did you add these to your profile's environment variables (user variable),
or to the machine env var? Is the Draco.Net account running under your user
profile (credentials) or a system account?
If you want to eliminate the possibility that it is automatically found, you
can use the nant
What does your build file look like? Can you test against the nant.build
file?
- Original Message -
From: Kevin Dickover [EMAIL PROTECTED]
More Details
Windows Server 2003 512 MB RAM
Nant Contrib included - using build directly (just unzipped into file
system), did not rebuild.
I'm sure I'm not the only one that would like to see these items as
compresses and attached rather than as inline. Please compress (zip) and
attach files; like log files, build files and other large text or binary
data.
please, please, please!
Thanks.
You can also use the NAntContrib record/
task. Please take a look at the help (http://nantcontrib.sourceforge.net/help/tasks/record.html)
and the mail archives* if you have further quesitons.
*Mail Archives:
http://www.mail-archive.com/index.php?hunt=nant
- Original Message -
You may be able to use the NAntContrib record/ task. Please take a look at
the help (http://nantcontrib.sourceforge.net/help/tasks/record.html) and the
mail archives* if you have further questions.
*Mail Archives: http://www.mail-archive.com/index.php?hunt=nant
If this doesn't work we would
You may want to use the solution task if you do not
want to write the build script yourself. Please read the documentation. http://nant.sourceforge.net/help/tasks/solution.html
- Original Message -
From:
Eldo Daniel
To: Nant Users
Sent: Friday, January 02, 2004 1:27
The first test will only tell if the task is loaded, not whether it can run.
Since you can specify a program for the task to run, in each instance (since
it derives from the ExternalProgram base class), it is possible that it
should load even if the default program location is invalid. It would
If you must run a release version, you can do something like this:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02208.html
It combines foreach/regex/if to do what you want. You will need to return
True/False on finding the http in the start of the string, but this can be
down with regular
Can you attach the relevant portions of your build
file and the rest of the output for this section?
Also, it is good to run in verbose (/v) mode to see
what references are sent to csc.
- Original Message -
From:
Eldo Daniel
To: [EMAIL PROTECTED]
Sent: Thursday,
Dan,
This is indeed an interesting suggestion. I think there was talk about
adding a trycatchfinally set of tasks. Could this work for you?
I'm really confused about your idea of a default init and default
cleanup routines. NAnt is a general purpose build tool, what should it know
about default
I just wish the (Xml Schema) noNamespaceSchemaLocation hint was honored in
the editor. :) Oh, that would make it so easy...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xsd_ref_7ld1.asp
BTW. The NAnt schema file generated by the nantschema task doesn't create
There doesn't seem to be anything here relating to NAnt. Is this the full
stack trace?
Sorry I can't be more helpful (I don't use CC.Net),
Scott
- Original Message -
From: Greiner, Andrew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:24 PM
Subject:
Yes, this should go to the dev list. Any stack trace based error, like this,
should go to the dev list. :) Also, if possible, you should attach a small
sample of the build file and any dependent files that would be needed to
reproduce the error case.
- Original Message -
From: Evan
Title: Message
Very interesting. Do you run any other .net apps on
your work machine? Is you work machine managed by an admin that may have placed
special restrictions on .net apps through the .net machine config? Can you
(re)build nant on your work machine? Is there anymore of a stack trace
Can you post the class def part of your custom tasks?
This sounds like there is a missing [TaskName] decl. for your task. Also, if
you can provide your custom task, to me, or in as a link, I'm sure somebody
can take a look. :)
- Original Message -
From: Michael Dang [EMAIL PROTECTED]
Frank, we can sure help. Please forward this post to the NAntContrib-Dev
list
http://lists.sourceforge.net/lists/listinfo/nantcontrib-developer
There is also a section on building NAntContrib from cvs on the wiki too.
- Original Message -
From: Frank Tullen [EMAIL PROTECTED]
To: [EMAIL
There is no tar file. We use the #ziplib code to create our nightly build,
which are run from NAnt. If there is a bug in there (either our build
process or the zip library) we should get it fixed. Can you tell us what
linux program, platform and such you are using?
Please see this thread to
Hello,
Can you provide us with a simple example of a build file, or your build
file, so we can see what you are doing? It maybe be some type of file system
locking issue, but that is hard to tell without seeing the build file.
Also, what version of NAnt are you using?
- Original Message
I don't know if this helps, but you can also do something like this (which
doesn't use the external file):
copy todir=${nant.project.basedir}\build\ failonerror=true
flatten=true
fileset
includes name=
basedir=${nant.project.basedir}\BusinessProcess\bin\Debug\*.dll/
includes name=
Ben,
The current version of the NAntSchema task is not terribly useable. There
are some serious issues with how it deals with collections (which are
relatively new to NAnt and used a lot now) and arrays. I'm pretty sure this
is the existing problem. I am working on some new util classes that
properties.xml should look like this:
project name=userproperties
property name=foo value=foo/
property name=bar value=bar/
/project
The include/ task loads and includes another build file. (note: It must be
a valid build file that can be used alone:)
You might want to think about this
Happy to help Mark.
If anyone can confirm that DTD entities (do not) work in our buildfiles (and
provide a sample please) that would be great.
Our build files should support standard dtd stuff. It would good to bug this
if we don't.
- Original Message -
From: Mark Colburn [EMAIL
The NAnt SDK is for creating extensions to NAnt, or using NAnt from another
.Net program. To create a build file you will need to use the XML framework
classes.
We dynamically create build files in some of the tests if you are looking
for an example.
- Original Message -
From: Ecmel
http://nant.sourceforge.net/help/tasks/foreachtask.html
See the 3rd example in the task documentation
- Original Message -
From: Lalit Parashar [EMAIL PROTECTED]
I want to recursively loop through all the folders in C:\ using foreach.
How could I do that?
Yes, you are correct. This is a bug that has been fixed in the nightly
builds (it affects both the if and ifnot tasks). This fix will be
included in the next release.
If you would like you can test the nightly build to see if your problem goes
away. http://nant.sourceforge.net/nightly/builds/
Yes, these are both bugs and I have already fixed the comment one in an
unrelated change. I will also make sure the error propagates to the top as
it should.
Sorry for the problems this caused. Thanks for reporting them.
This code will be available in tonight's build.
- Original Message
Yes, I too have had problems connecting to sourceforge.net on the anon-cvs servers. Our
nant build server does that nightly and it has failed for past 2 nights/days because of
cvs connection problems.
quote who=[EMAIL PROTECTED]
Been trying to get the nant source for the last 2 days
from
Yes, throw an exception. In fact, throw a BuildException.
We have a failonerror attribute which dictates how this exception is
treated. The user can choose to ignore it, or let it stop the build. Also
there are targets that can be called on a failure, or success of a build.
- Original
Yep, this is true.
The first run builds the usertask sample and copies it to the current
nant.exe directory. The second run tests the sample usertask. There is
really no dynamic (on-the-fly without restarting nant) way to load a user
defined task right now. The NAntContrib project uses a custom
What does the verbose output look like? What version of NAnt are you using?
Is perl in your path?
What does your build file look like?
- Original Message -
From: Nicholas Robinson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:23 AM
Subject: [Nant-users] EXEC
Chris,
Thanks for the error report. This is caused by a bug in the SharpZLib zip
stuff. All the dates of files in the zip are +1 month. This will be fixed
automatically when a month has gone by (cause then the files you build will
be newer than the file from the zip). We have fixed the code in
Yes, I can help. Your includefile must be a build file. So you should put a
project element around what you have.
See the task ref for more info. http://nant.sourceforge.net/help/tasks/includetask.html
Like this...
project name="includeme"
if
propertyexists="OtherBuildDrive"
property
the files now)
oooppp,
Scott
- Original Message -
From: Derek Puff [EMAIL PROTECTED]
To: 'Ian MacLean' [EMAIL PROTECTED]; 'Scott Hernandez'
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:04 AM
Subject: RE: [Nant-users] NAnt.build failed (error creating
So, just to be clear, you are doing the following?
Download 0.8.01 from sf.net
(http://sourceforge.net/project/showfiles.php?group_id=31650)
Extract files to C:\program files
Run C:\program files\nant-0.8.01\bin\nant.exe -buildfile:../nant.build
- Original Message -
From: Derek Puff
Please run the cleanall build targets and see if that helps.
The important error message here is at the end:
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\csc.exe return 1
Output:
fatal error CS0042: Unexpected error creating debug information file
Jason,
The only thing I can think of that would come close is using a foreach,
and only if all the files of each type (of transformation) are in the same
directory.
Otherwise, please patch away. It is a good feature, and will make better use
of template caching than the above solution, even if
contribute
later or benefit from your experiences.
Thank you for contributing :)
- Original Message -
From: Chris Garty [EMAIL PROTECTED]
To: Scott Hernandez [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 10:38 PM
Subject: RE: [Nant-users] Re: [nant-dev] NAnt FAQ
Hey
Gert,
We made some custom changes to the core and msdn documenter (I don't know if
those changes went in to the source tree). We need to update our needs and
get the current release working for building the nant docs. This will not
work for us without a little more work as I understand it. Ian
I think what you want is this:
target name="BuildDebug"
property name="debug" value="true" /
nant buildfile="myapp" inheritall="true" verbose="true"
/
/target
target name="BuildRelease" depends="FrameworkTestExecute"
property name="debuge" value="false"
/
--
nant
We should add this one to the faq on the wiki. :)
- Original Message -
From: Ian MacLean [EMAIL PROTECTED]
To: Chris Garty [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 9:35 PM
Subject: Re: [Nant-users] Emailing NAnt output using mail task
Chris Garty wrote:
Griffin,
Totally external. There is nothing in NAnt which exposes the fact, or
requires, that VS.Net be installed.
I did install some things into a VS.Net dir using nant, but it required that
I hardcode the path in the buildfile. When I was playing around with the
NAntSchemaGeneratorTask I would
into vs.net.dir
property--
readregistry property="vs.net.dir"
key="\SOFTWARE\Microsoft\VisualStudio\7.0\InstallDir" hive="LocalMachine"
/
- Original Message -
From: "Griffin Caprio" [EMAIL PROTECTED]
To: "Scott Hernandez" [EMAIL PROTECTED]
MessageThis is a bug; AFAIK. Good catch.
This line needs to be fixed to generate a unique root name for the compiled
code. (I haven't done anymore work than looking at the code for a few
minutes to guess at this solution.)
ScriptTask.cs:138
_rootClassName = /*Target.Name*/ xx + _script_ +
Yes, yes there is. NAntContrib contains the record task. You could do
something like this.
project
property name='nant.onsuccess' value='onsuccess'/
property name='nant.failure' value='onfailure'/
property name='logfile' value='build.log'/
record name=${logfile} action=Start/
Bobby,
It is possible that you may need some attributes, like taskname, for your
task. In fact, the taskname attribute must be unique in the list of loaded
tasks.
Here is the bare minimum that should be needed.
[TaskName(newtask)]
public class TestTask : Task {
protected
Thanks for your email. There is no newsgroup but
there are mail archives (as you have found).
The touch test was removed from the test on
8/14/2002. There is no reason given. I'm in the process of cleaning things up to
get ready for a release. I hope to get to this issue too.
-
The property you want is "nant.project.default".
It is the value from project
default="foo"/
Hope that Helps, Scott
- Original Message -
From:
Nicholas Robinson
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 4:52
AM
Subject: [Nant-users] Switch on chosen
Not as yet. But posting to this list with an idea
of what you want will probably result in an answer as to whether such a task
exists. :)
- Original Message -
From:
mlist
To: [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 9:25
PM
Subject: [Nant-users]
There have discussions about supporting an id/ref system for naming filesets
and really any task. But no code has be put in cvs :)
As for the format of the fileset in text file it is not csv (comma
separated) but one per line.
fileset
includesList name=filename.txt/
/fileset
There were some
There isn't any direct support in NAnt for using a specific framework
version of the runtime. It totally depends on your environment when running
NAnt.
Although it would be nice if this was a project setting that could target a
specific version of the runtime without changing your environment.
Various users have reported different results, some
positive. I don't think I've heard back anything since mono 0.17 was released.
In mono you will/mayneed to specify
additional assemblies if you want mono to load them for you. This is a little
different than the way the .net runtime
Yes, the TaskName attribute specifies the command name of the program to run
for things that inherit from CompilerBase. But the program name (executable)
is actually taken from the ProgramFileName property of ExternalProgramBase
(which CompilerBase inherits from).
I hope that helps,
Scott
-
Yep, I totally missed this code when I was looking through the task.
I've updated the StyleTask to expand the name and expression of the
param. I've also added some documentation that this feature exists.
Note to devs: We still need to add unit tests. I have not done so yet.
Thanks for the
A quick (2 minute) look at the XSLTProcess.java file (implementation for
style/XSLT task) doesn't answer this question.
However, reading through the Ant style docs does indicate that there
probably should be support provided for direct param passing into the
NAnt style task.
It would work
77 matches
Mail list logo