-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init feature #796
Comments
Thanks for your PR!
I would suggest dropping the generation of the property file. |
What do you think about a optional usage of a filename?
It would also be nice to support
|
Thanks a lot for your quick feedback! About generation of property file: I added this because it's what I always use in all my projects, and I consider it's a good practice to keep all properties together in a same file, however, I agree that not all people need or want a property file. Regarding sections, I know they are not supported by properties and are omitted, but I always use sections in my properties as categories: [database]
db.user=user
[ftp]
ftp.server=
[tests]
dir.output= But once again, I agree this couldn't be the case for all Phing's users. Therefore I will drop the generation of property file as you suggest, mainly for the sake of simplicity. Concerning the optional usage of a filename, I'm not very keen about this. The main reason is that I want to keep the |
I updated my PR, I have taken into account your suggestions. |
Closed because #797 was merged. |
It would be nice to have an "initialize" option for Phing.
I systematically look for this feature everytime I discover a new package.
This kind of feature is usual nowadays, to name a few:
$ behat --init
$ php composer.phar init
$ phinx init .
So for Phing I'm wanting something like this:
Ideally this command would create two files at the root of the project:
build.xml
andbuild.properties
(these are the default naming conventions).The content of
build.xml
:The content of
build.properties
:I have already worked on this, and I'm really expecting for your feedback.
The text was updated successfully, but these errors were encountered: