This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
We could (or perhaps should?) allow to define tasks in the Project Properties dialog for other actions as well (Run, Debug). What do you think, Láďo? Does it makes sense? BTW it is already possible, one just need to edit project.properties file manually and add there relevant task definitions. Thanks.
Yes, I've seen it one project where they have "build" on run action (ask MartinF). If I understand it correctly, it always triggers the defined task and then continue with the default IDE action? If so, it might be described as "before run" and "before debug" ?
Yes, exactly.
+1 for that, otherwise nobody knows about that cool feature how to connect Grunt and NetBeans actions together.
Fine. Which actions to add? - Run project - Debug project - Run file? - Debug file? - ? Thanks.
Maybe Test would be useful as well
(In reply to Tomas Mysik from comment #4) > Fine. Which actions to add? > - Run project > - Debug project > - Run file? > - Debug file? > - ? > > Thanks. For our use cases the most preferred action to wrap would be pre-run/pre-debug and maybe post-npm/post-bower install. But not sure whether it's even possible. For now we are using pre-run project action for everything. But especially 'post-bower install' could save some time for copying/pruning libraries.
(In reply to Vladimir Riha from comment #5) > Maybe Test would be useful as well I agree.
(In reply to Martin Fousek from comment #6) > and maybe post-npm/post-bower install. Unfortunately not possible, these are not standard IDE actions. You could try using npm scripts [1]. Thanks. [1] https://docs.npmjs.com/misc/scripts
Done, please verify. Thanks! http://hg.netbeans.org/web-main/rev/cdaa924bf8c4
Integrated into 'main-silver', will be available in build *201502130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cdaa924bf8c4 User: Tomas Mysik <tmysik@netbeans.org> Log: #249925 - Allow to define tasks for Run and Debug actions
Except of issue 250573, it works fine with Grunt/Gupl/Phing. In PHP projects, test files do not have Test file action, only Run so it works with task mapped to Run but the mapping option is probably not useful (tested with PHPUnit). Perhaps Test file mapping could be removed from Phing panel (if it is possible to remove it just from Phing)? Product Version: NetBeans IDE Dev (Build 201502200001) Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
(In reply to Vladimir Riha from comment #11) > Perhaps Test file mapping could be removed from Phing panel > (if it is possible to remove it just from Phing)? Currently not possible but please, submit an issue for it, I will do it. Thanks.