In the task list, we can manage the tasks and select the tasks to run.
Task three structures
For example, here is a task structure for the Web project
Right click menu or right button to see the following actions.
The name of the custom, but the same level cannot rename.
We can modify the model in the task, but if multiple tasks need to modify the model, the efficiency will be low.
Select multiple tasks setting model
Select model group or model
Select model group
Select model
The task has 3 following states, these states are automatically updated according to changes in the environment. For example, the template has syntax errors, and the file directory cannot be found.
If there is a syntax error in the template, or other error or warn, the task status will change
Task status is automatically updated, but sometimes there is delay, you can use refresh.
The order of execution of the task is up and down, and the order of execution of the task can be changed up and down.
Tasks can be copied and pasted.
Any element can be deleted, the project and directory are deleted, and its child elements are deleted at the same time.
You need to move the mouse to drag and drop, and the task moves from one position to another, which is equivalent to cutting.
Model source is the list of models in current jmr file.
A task can only select one model group or model, and the use between them is different. Please read:entity usage
Action must select the class whose parent class is org.jmr.core.JmrActionSupport, and the dialog box matches these classes automatically. Enter ** can view all matching classes. The selected Action must be in the same project.
The template selection dialog box can view all templates under the current project. You can enter name filtering in the search box. The selected template must be in the current project.
The state of the first run task is new, followed by merge and overlay.
For example, the 2 tasks of spring and struts are adding registration information to the configuration file, and menu adds new link.
Click to create a new directory, which can be found in any open project.
Click expression can be used in a directory. By selecting the directory, you get the value of the directory, and then insert model variables. In the new mode, if the directory does not exist, it will be created automatically.
There are 2 kinds of expression:
When you select a model, you can use the ${property}. ${property} is the property of the selected model, you can also use ${relation.property}.
When you select a model group, you can only use ${relation.property}.
Example: generating directory using expressions.
The model relation is one, and the property class value is book.
When you select a model, you can use the ${class}, also use ${one.class}.
The directory settings are as follows:
When you select a model group, you can only use ${one.class}.
The directory settings are as follows:
Generated file directory
Like directories, you can also use ${property} and ${relation.property}.
Generated file: