Running a Rake task without prereqs

Any way to force a rake task to run but skip its prereqs? Sometimes you
need to do this.

Robert J. wrote:

Any way to force a rake task to run but skip its prereqs? Sometimes you
need to do this.


Posted via http://www.ruby-forum.com/.

Probably:

task :without do
meth()
end

task :with => [ preq ] do
meth()
end

def meth
# orig. task code
end

T.

I mean preexisting tasks in Rakefiles.

Trans wrote:

Probably:

task :without do
meth()
end

task :with => [ preq ] do
meth()
end

def meth
# orig. task code
end

Robert J. wrote:

I mean preexisting tasks in Rakefiles.

That’s liable to be “dangerous”. So it’s probably not possible.

T.