Project

General

Profile

« Previous | Next » 

Revision 62ad4742

Added by Andreas Kohlbecker almost 3 years ago

DrushExecuter supports json variables

View differences:

src/main/java/eu/etaxonomy/drush/DrushExecuter.java
90 90
     * <ol>
91 91
     */
92 92
    public static DrushCommand variableGet = new DrushCommand(Arrays.asList("vget", "--exact", "--format=json", "%s"), true);
93

  
93 94
    /**
94 95
     * Executes {@code drush vset --exact <variable-key> <variable-value>}
95 96
     * <p>
......
99 100
     */
100 101
    public static DrushCommand variableSet = new DrushCommand(Arrays.asList("--yes", "vset", "%s", "%s"), false);
101 102

  
103
    /**
104
     * Executes {@code drush vset --exact <variable-key> <variable-value>}
105
     * <p>
106
     * The execution of this command via
107
     * <code>DrushExecuter.execute({@linkplain DrushExecuter#variableSet})</code> will not return any values.
108
     * The command will fail with an {@link DrushExecutionFailure} if setting the variable was not successful.
109
     */
110
    public static DrushCommand variableSetJson = new DrushCommand(Arrays.asList("--yes", "vset", "--exact", "--format=json", "%s", "%s"), false);
111

  
112

  
102 113
    /**
103 114
     * @throws IOException
104 115
     *             if an I/O error occurs in the ProcessBuilder

Also available in: Unified diff