Skip to content

yjo4/shell-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

Anson's Bash Script for Compiling & Executing Eclipse Projects

Image

Users can extract an exported Eclipse Project (.zip) via the Mac Terminal and compile and run the project. A list of executable files are listed when the user specifies an argument. This currently is still in the works of testing for Linux, but it should work on the Mac Terminal.

Getting Started

Download the file run.sh from this repository. Open up your terminal. Download an Eclipse Project. The Eclipse Project MUST be exported properly or else issues may arise. If you use this for grading, then have your students properly export the Eclipse Project. I will implement a way to fix this in the future, but for now, make sure the Eclipse Projects are properly exported in a .zip format. You can set an alias to run the script a lot easier.

alias run='./run.sh'

Specify arguments in the format of: [NAME] [FILE] Example:

run anson project1.zip

NAME: Renames the directory to the argument FILE: Name of the file to be imported

Requirements

Bash is required for this script to work. You must have java, javac, and unzip installed on your shell.

For Windows users, there are some tweaks that I made after running some tests. But the only difference is the top line where #!/bin/sh is located, simply replace it with #!/bin/bash. The script for the Windows version will be available.

Options

The options are self explanatory when you run the script. There are 4 options that allow you to either run a file, list the files, view the output of the program, or end the script.

About

Compile and Execute Java Eclipse Projects in one go!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%