From: Ulrich Hammel (hammel_at_nutechsolutions.de)
Date: Wed Apr 06 2005 - 15:49:41 CEST
Message-ID: <4253E8F5.7010207@nutechsolutions.de> Date: Wed, 06 Apr 2005 15:49:41 +0200 From: Ulrich Hammel <hammel@nutechsolutions.de> Subject: Re: [taskjuggler] Redefinition of macros?
Chris,
I have to apologize not to explain the purpose of my request. The idea
behind is that I do have to schedule many different projects in parallel
tightly connected by usage of shared resources. I therefore find it more
comfortable to define one huge TaskJuggler project rather than following
the approach outlined in http://www.taskjuggler.org/example.php "The Big
Project".
In my approach each project is mapped to "level 0" TaskJuggler task
which is stored in a separate .tji-file including its subtasks. The
tji-files are maintained by different people. To ease definition of such
a task, and because many of these tasks (each representing a project)
are quite similar in structure, I would like to provide a sort of
template. Such template would start with a couple of macro definitions
that will be reused inside the body of such level 0 task. As a
consequence the redefinition of macros at the beginning of each
.tji-file is required.
Of course this approach assumes a local scope for macro definitions with
respect to macro and parameter substitution. Thus, macro redefinition
might not really lead to the solution I have in mind.
Thank you,
Uli
P.S.: I like the 2.1 version including the TaskJuggler UI very much.
Great job! Do you plan to enable the printing of these nice Gantt-Charts
of the project view?
Chris Schlaeger wrote:
> Hi Ulrich,
>
> On Tuesday 05 April 2005 07:20, Ulrich Hammel wrote:
>
>>Hi there,
>>
>>is it possible to redefine or undefine a macro?
>
>
> no this is currently not supported. The TaskJuggler syntax was designed to be
> very error resistant. So all items need to be declared first or redefinitions
> result in an error message.
>
> In that sense an 'undefine' statement for macros would be the right way to
> implement it. So far nobody asked for it but it would not be much work to add
> it. What do you need it for?
>
> I'm generally very familiar with macro languages such as the C preprocessor or
> even m4. I added the macros to TJ because it is a powerful feature, but hoped
> that people would use it only scarcely. I guess you proved me wrong now. ;)
>
> Chris
>
-- To unsubscribe, email the address listed in the List-Unsubscribe header For additional commands, email: taskjuggler-help@suse.com
This archive was generated by hypermail 2.1.7 : Wed Apr 06 2005 - 15:49:56 CEST