Skip to content
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

Ability to run any current ant .xml out of the build system #12

Closed
jeremychone opened this issue Dec 30, 2013 · 10 comments
Closed

Ability to run any current ant .xml out of the build system #12

jeremychone opened this issue Dec 30, 2013 · 10 comments

Comments

@jeremychone
Copy link

Current

Right now, we have to set the project to build with Ant to be able to run and select a target from a ant xml.

Wish

It would be great to also be able to run (via the Command Shift P) the same SuperAnt Build command that would popup the list of targets to execute from the current ant file (no matter the name).

This will allow people that use ant as a side scripting language rather than their project build system to still use SuperAnt in random ant files.

My use case:
For example, all my Java projects are maven driven, but I often have a build.xml to copy and update some files over. It's not part of the process as their are just very rare action I take during a project life cycle, but nice to have them scripted in a cross platform way.

@aphex
Copy link
Owner

aphex commented Dec 30, 2013

Not sure I follow. You can change the file superant uses via configs, it will try a file you have selected in the file viewer first also if you wanted to build from a specific file. Are you talking about target names being hidden? if that is the case you can also change that behavior with configs to show targets with underscores or without descriptions.

@jeremychone
Copy link
Author

Let assume I have a folder /myapp/ which has a ant xml file called /myapp/build.xml

If I do not have a sublime project for this folder yet, I am going to something like subl /myapp/ which will create a fresh sublime project with this folder.

A) Today, if I want to urn the build.xml project, I need to do the following:

  1. Tools > Build System > SuperAnt
  2. Command + B and then I can select my target.

B) What I would like to do is the following.

  1. Select the .xml file of my choice
  2. And without going to the build system and build command, just type type Command Shift P and start typing "Super Ant run..." and then, select the target.

So, I think that A is great, but It would be great to allow the B scenario as well.

Or perhaps, SuperAnt already do B, but somehow, I cannot find how.

@aphex
Copy link
Owner

aphex commented Jan 13, 2014

If you do not create a sublime project how would you "select the .xml file of choice" or are you simply talking about selecting it in the file list without any memory of this in sublime text?

If simply selecting the file from the file list that should currently be working. If you have a ANT xml file selected when you hit CMD+B it should use that always. It then attempts to search from there for your build file.

Also once you have selected Tools > Build System >SuperAnt you do not need to that again. So normally its just 1 step for A.

@jeremychone
Copy link
Author

If I do not set the Build System to SuperAnt for my project, when I click
CMD+B when selecting a ant .xml file, I do not see the SuperAnt list of
target (which make sense). So, the wish here would be to also be able to
have CMD+SHIFT+P for the command palette and type "SuperAnt Run..." kind of
thing. This way, I have the option to run any ant compatible .xml with
SuperAnt outside of the Sublime Build System.

Jeremy,

On Sun, Jan 12, 2014 at 11:00 PM, Ross Gerbasi notifications@github.comwrote:

If you do not create a sublime project how would you "select the .xml file
of choice" or are you simply talking about selecting it in the file list
without any memory of this in sublime text?

If simply selecting the file from the file list that should currently be
working. If you have a ANT xml file selected when you hit CMD+B it should
use that always. It then attempts to search from there for your build file.

Also once you have selected Tools > Build System >SuperAnt you do not need
to that again. So normally its just 1 step for A.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-32148694
.

Jeremy Chone
http://britesnow.com/
(415) 699 9912
Building Enterprise HTML5 Applications

@aphex
Copy link
Owner

aphex commented Jan 13, 2014

I see what you're saying. So essentially you want the same menu you get using the build system and CMD + B to pop up when you do a CMD+SHIFT+P and type Super Ant

@jeremychone
Copy link
Author

Yes, that it. Sorry to have been confusing. This way, for my sublime
project, I can set my Build System to be maven or make, and still run my
ant xml files from the command palette.

On Mon, Jan 13, 2014 at 11:42 AM, Ross Gerbasi notifications@github.comwrote:

I see what you're saying. So essentially you want the same menu you get
using the build system and CMD + B to pop up when you do a CMD+SHIFT+P and
type Super Ant


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-32203400
.

Jeremy Chone
http://britesnow.com/
(415) 699 9912
Building Enterprise HTML5 Applications

aphex added a commit that referenced this issue Jan 15, 2014
Added Text Command "Super Ant - List Targets" to run Super Ant without changing the build system.
Added Context Menu Option for Super Ant - List Targets (right click in sublime)
Removed Default.sublime-commands
@aphex
Copy link
Owner

aphex commented Jan 15, 2014

Alright all fixed up, the command is called Super Ant - List Targets but I like to go with CMD+SHIFT+P and type "sal". Pops up first in my list.

Also added a context option if you want to right click select Super Ant -> List Targets

2d47a81

@aphex aphex closed this as completed Jan 15, 2014
@jeremychone
Copy link
Author

Great. I am using package control, do I need to do something special to update it? I tried "Package Update" but did not see the update. Am I missing something?

@aphex
Copy link
Owner

aphex commented Jan 15, 2014

Hmmm It seems like it knows it was updated

https://sublime.wbond.net/packages/Super%20Ant

I don't think there is anything else I need to do, pretty sure it pulls form the repo. You could always uninstall and reinstall the plugin?

@jeremychone
Copy link
Author

Perhaps there are some cache somewhere not updated. I will git it couple of
days to test the update process, and if not there, I will
uninstall/reinstall.

Thanks a lot for this feature.

Jeremy,

On Wed, Jan 15, 2014 at 10:57 AM, Ross Gerbasi notifications@github.comwrote:

Hmmm It seems like it knows it was updated

https://sublime.wbond.net/packages/Super%20Ant

I don't think there is anything else I need to do, pretty sure it pulls
form the repo. You could always uninstall and reinstall the plugin?


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-32396840
.

Jeremy Chone
http://britesnow.com/
(415) 699 9912
Building Enterprise HTML5 Applications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants