In Apache Ant, we can pass arguments to the build file using the switch -D. We can define a value for a property from the command line using -Dname=value
Eg:
ant build.xml -Dx=5
Eg:
ant build.xml -Dx=5
Difference | Bash | Korn |
---|---|---|
Redo previous command | Arrow Up | the letter 'r' |
Source file | We can use the keyword 'source' as well as dot to source a file Eg: source file or .file | We can just use the dot to source it Eg: .file |
System | Exec | Backtick |
---|---|---|
System returns a value after a command is run, irrespective of whether the command executed successfully or failed. | Exec does not return a value. | Backtick is used to capture the output of a command. |