Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#325 closed enhancement (fixed)

[PATCH] working.directory property for build recipies

Reported by: shendric@… Owned by: osimons
Priority: major Milestone: 0.6
Component: Build slave Version: dev
Keywords: Cc: shendric@…
Operating System: BSD

Description

Is it possible to add another property for build recipes that has the absolute path to the directory being used for running the recipe? I'm using a tool that needs an absolute path, but doesn't handle a relative path (to the current working directory) well.

Attachments (1)

bitten-working-directory-patch.txt (652 bytes) - added by shendric@… 16 years ago.
Patch to add a variable for the working directory a slave is using for the build.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 16 years ago by shendric@…

  • Cc shendric@… added

comment:2 Changed 16 years ago by shendric@…

The following patch produces the desired result for the following branch:

http://svn.edgewall.org/repos/bitten/branches/experimental/trac-0.11

It uses 'basedir' instead of 'working.directory'. I'm indifferent on the name to use.

I hope this helps the enhancement make its way in to the repository :)

Thanks!

Changed 16 years ago by shendric@…

Patch to add a variable for the working directory a slave is using for the build.

comment:3 Changed 16 years ago by anonymous

  • Component changed from General to Build slave

comment:4 Changed 16 years ago by anonymous

  • Summary changed from working.directory property for build recipies to [PATCH] working.directory property for build recipies

comment:5 Changed 15 years ago by osimons

  • Owner changed from cmlenz to osimons

I can see the need for this. Remember seeing some docs about this as well, so need to make sure docs are updated at the same time.

I'll put it on my todo.

comment:6 Changed 15 years ago by anonymous

Any possibility this will be incorporated into the trunk revision any time soon? I have an immediate need for this and would rather I not have to patch all future revisions...

comment:7 Changed 15 years ago by osimons

Could you try this alternative patch against latest trunk?

  • bitten/recipe.py

    a b  
    5656        self.output = []
    5757        self.basedir = os.path.realpath(self.config.interpolate(basedir,
    5858                                                                **self.vars))
     59        self.vars['basedir'] = self.basedir
    5960
    6061    def run(self, step, namespace, name, attr):
    6162        """Run the specified recipe command.

comment:8 Changed 15 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

Committed as part of [685].

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.