Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
|
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2012, 03:18 AM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default To write nant build script for js files

Hi all,
I'm just a beginner in Nant build scripting and i was given a task of doing a build for my project and i need to write a script for 100 js files in a folder called 'scripts'. I dont have any idea of writing even though its in xml i'm clear about the flow.
Please help me with a script.
thanks in advance
 
Old December 14th, 2012, 07:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default Need more detail

I'm afraid you're going to need to provide a lot more detail to your question. First of all, what is it exactly that you need to do with these JS files? I've never known of anyone needing to do any kind of "build" of JS.

Generally with NAnt you call out to some compiler or processor to do the actual work required. You can call out to any external program to do the work so you just need to find the right external tool to process the files in the way you need.

Have you looked at the NAnt documentation? I've found that to quite sufficient to get going with most tasks.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
 
Old December 17th, 2012, 01:16 AM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by planoie View Post
I'm afraid you're going to need to provide a lot more detail to your question. First of all, what is it exactly that you need to do with these JS files? I've never known of anyone needing to do any kind of "build" of JS.

Generally with NAnt you call out to some compiler or processor to do the actual work required. You can call out to any external program to do the work so you just need to find the right external tool to process the files in the way you need.

Have you looked at the NAnt documentation? I've found that to quite sufficient to get going with most tasks.






I have a project for which i have to do a build. I'm using cruise control as the build tool. But i'm not sure of integrating both nant script and cruise control.
In my project we have a set of files, scripts for which i have to do a build. As I'm a beginner I dont know where to start. I have read the NAnt documentation and installed it.
The NAnt script is in XML and the flow for doing the build is not clear to me. Also I'm using Dynamsoft SCM as version control system and its working directory from where I have to fetch my project files for doing the build. finally the NAnt script should be linked with cruise control.net to do the build. Can anyone please help me atleast with a sample script?
 
Old December 17th, 2012, 10:43 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default Still need more detail

Quote:
Originally Posted by aa_dev View Post
I have a project for which i have to do a build.
What is the "build" you have to do? Are you compiling code? Copying files? You mention js files, but what do you need to do with them? Unless these are js files that are being compiled for some technology with which I'm familiar, which is very possible, I can't imagine what you'd need to do with them aside from copy or zip them into some alternate structure.

Quote:
Originally Posted by aa_dev View Post
I'm using cruise control as the build tool. But i'm not sure of integrating both nant script and cruise control.
Cruise Control has pretty decent documentation that explains how to call its various tasks, including NAnt build scripts.

Quote:
Originally Posted by aa_dev View Post
The NAnt script is in XML and the flow for doing the build is not clear to me.
The flow of the build will be particular to your project and needs. You need to decide what steps you have to perform and fashion the appropriate NAnt tasks to perform those steps.

Quote:
Originally Posted by aa_dev View Post
finally the NAnt script should be linked with cruise control.net to do the build. Can anyone please help me atleast with a sample script?
Again, CruiseControl has samples of configuring an integration project with calls to NAnt. Details can be found here: http://ccnet.sourceforge.net/CCNET/NAnt%20Task.html
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
 
Old December 20th, 2012, 02:32 AM
Registered User
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My project holds these folders which are in C:\myproject:
common,
mobile-html scripts, images etc
db-tables, procedures
data-jquery,
scripts - js scripts
customs, utilities functions

Compile the files and have an .exe file in zip format
How to map these files and do a Nant build script which should be configured in CC.Net

A sample script would help me too

Last edited by aa_dev; December 20th, 2012 at 02:52 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call js script in c# Cade_Feng BOOK: ASP.NET 4 24-Hour Trainer 0 September 21st, 2010 11:11 PM
How to call js script in C# Cade_Feng BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 September 21st, 2010 11:00 PM
Nant Build for ASP.net Project with C# SanjuBaba NAnt 1 October 15th, 2008 08:24 AM
.js outside script problems Apocolypse2005 Javascript 1 July 25th, 2006 07:33 PM
JS Script help... Thomas82 Classic ASP Basics 2 April 29th, 2005 05:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.