Rake packagetask package files




















Create a Package Task with the given name and version. Use :noversion as the version to build a package without a version or to provide a fully-versioned package name. Home Core 3. Home Classes Methods. In Files rake Parent TaskLib. Rake::PackageTask Create a packaging task that will package the project into distributable files e. The PackageTask will create the following targets: :package Create all the requested package files. This target is automatically added to the main clobber target.

Example: Rake :: PackageTask. Attributes name [RW]. Name of the package from the GEM Spec. True if a gzipped tar file tgz should be produced default is false. True if a bzip2'd tar file tar. True if a gzipped tar file tar. True if a xz'd tar file tar. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 8 years, 1 month ago. Active 8 years ago. Viewed times. For what it's worth, I am using Rake version 0.

Add a comment. Active Oldest Votes. This works, thanks. It does seem crazy, though, that you're forced to name your tasks after the artefact they produce rather than what they actually do! I don't suppose there's a way around this, is there? ATG In the case of file tasks I think it makes sense to name them after the file being created. It also seems strange given that conventional build tasks such as "compile" and "test" are named after the action being performed rather than the result of the operation.

Anyway, thanks for your help! Rhett Sutphin Rhett Sutphin 1, 8 8 silver badges 15 15 bronze badges. It still seems to be looking for the actual JAR file as a prerequisite task, oddly. You can add a dependency to any task by writing, someTask. Alex Boisvert Alex Boisvert 2, 2 2 gold badges 17 17 silver badges 18 18 bronze badges. This doesn't work, I'm afraid. Any ideas? Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password.



0コメント

  • 1000 / 1000