Java Reference
In-Depth Information
List out the files on your Desktop (using ls ), and you'll see all the files you
have there as well as the new directory, myplugins . Let's go down into myplugins
and do some work.
$ cd myplugins
Do a pwd to confirm you're in the myplugins directory.
If you do an ls here you won't see anything—we haven't made any files there
yet. Let's fix that by making the directory structure, which will be the same
as for the HelloWorld plugin. Start by making a directory named for the plugin
itself:
$ mkdir HelloWorld
And (you guessed it!) cd down into HelloWorld .
$ cd HelloWorld
Now you can make a few directories that you'll need: src , src/helloworld , bin , and
dist . Go ahead make those directories here now:
$ mkdir src
$ mkdir src/helloworld
$ mkdir bin
$ mkdir dist
Use ls to make sure they are there.
$ ls
bin/ dist/ src/
$ ls src
helloworld/
Now you need three files here, which you can copy from the topic's example
code. You can drag and drop using your regular graphical windows, or use
the copy command, cp :
$ cp ~/Desktop/code/HelloWorld/build.sh .
The tilde character (~) is shorthand for “my home directory.” And hey—we
got to use the single dot! The whole command line means “copy this file to
the current directory.”
You'll need this file too, so copy that over while you're here.
$ cp ~/Desktop/code/HelloWorld/Canary.inf .
Now you've created the directories and supporting files that you'll need for a
plugin.
 
 
 
Search WWH ::




Custom Search