Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (854)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Does eclipse have an auto info feature?[SOLVEd]  (Read 11943 times)
0 Members and 1 Guest are viewing this topic.
Offline wessles
« Posted 2013-08-02 22:45:29 »

I googled it, btw  Grin, so don't say lmgtfy.

Anyways, as my game making becomes more of a job than hobby, I want to make my source code look a bit more professional. I want to add in this to all of my code, after imports (or where ever, It would be great if it was after imports):
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
package wml.jgo.games;

import java.crap.stop.dontgointhispackage.youwerentsupposedtoseethis;

/*
Author: Wessles
Website: www.wessles.com
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. For more information on this license, go to http://creativecommons.org/licenses/by-sa/3.0/deed.en_US
*/


class crap {
// You are lucky I am giving this for free. You aren't even worthy of my mad coding skillz.
}


I want to have that commented out part with licensing and information. Can eclipse do this automatically?
Offline moogie

JGO Ninja


Medals: 16
Projects: 6
Exp: 10 years


Java games rock!


« Reply #1 - Posted 2013-08-02 23:29:49 »

yep Smiley

http://stackoverflow.com/questions/2604424/how-can-i-add-a-default-header-to-my-source-files-automatically-in-eclipse

Java4k RIP 2014
Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #2 - Posted 2013-08-03 00:16:35 »

Creative Commons is not designed for software.

Just saying.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SHC
« Reply #3 - Posted 2013-08-03 01:33:30 »

For opensource, use GPL v3.

Offline drabla

Junior Devvie


Medals: 5



« Reply #4 - Posted 2013-08-03 01:33:53 »

I like this licence:

http://opensource.org/licenses/MIT
Offline ReBirth
« Reply #5 - Posted 2013-08-03 01:53:09 »

To confuse you more here is the third: Apache.

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2013-08-03 01:58:41 »

I use the 3-clause BSD license: http://opensource.org/licenses/BSD-3-Clause

Offline Sammidysam
« Reply #7 - Posted 2013-08-03 01:59:37 »

Is there a link anywhere to a page containing a description of all of the popular open source licenses, a quick summary of what they do, and what makes them different?
Offline ReBirth
« Reply #8 - Posted 2013-08-03 02:01:01 »

I am not good at this but I think that's Apache (plus you're freed from sue of any disaster caused by your program).

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #9 - Posted 2013-08-03 02:01:42 »

Is there a link anywhere to a page containing a description of all of the popular open source licenses, a quick summary of what they do, and what makes them different?
Here, try this site.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SHC
« Reply #10 - Posted 2013-08-03 02:02:42 »

http://opensource.com/law/13/1/which-open-source-software-license-should-i-use

Offline Sammidysam
« Reply #11 - Posted 2013-08-03 02:04:01 »

Thanks for the links, I had Googled it but I was wondering if there was some site that was super highly suggested.  I'll just do my research soon.
Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #12 - Posted 2013-08-03 02:13:06 »

I found the best website that simply asks you questions to narrow down which license is best for you: http://www.oss-watch.ac.uk/_site/apps/licdiff/

Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #13 - Posted 2013-08-03 02:15:06 »

I found the best website that simply asks you questions to narrow down which license is best for you: http://www.oss-watch.ac.uk/_site/apps/licdiff/

Was just about to post this.

Offline Sammidysam
« Reply #14 - Posted 2013-08-03 02:16:57 »

Shocked Thank you very much!  I will definitely use that!
Offline ReBirth
« Reply #15 - Posted 2013-08-03 03:10:09 »

Interestingly, no popular license describes enhanced attribution.

Offline SHC
« Reply #16 - Posted 2013-08-03 03:25:37 »

Here's the top licences.



My selection

 /*----------------------------------------------------------

  1.   Popular and widely used            : Yes
  2.   Licence type                       : Strong copyleft
  3.   Jurisdiction                       : Don't care
  4.a  Grants patent rights               : Don't care
  4.b  Patent retaliation clause          : Don't care
  5.   Specifies enhanced attribution     : Yes
  6.   Addresses privacy loophole         : Don't care
  7.   Includes 'no promotion' feature    : Yes

 ----------------------------------------------------------*/


Good find, ra4king!

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #17 - Posted 2013-08-03 05:03:54 »

Strong copyleft?!? Why?

Offline SHC
« Reply #18 - Posted 2013-08-03 05:32:59 »

Strong copyleft?!? Why?

I don't want others to sell my code by dual-licencing it with a commercial licence. But LGPL is an exception for this.

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #19 - Posted 2013-08-03 12:26:48 »

Right but strong copyleft requires the ENTIRE project of whoever is using your code to be open source. If anyone makes a closed-source program, say a game, and monetizes it, they cannot use your code/library anymore. Essentially, you've limited your code to only open-source use.

Personally I would prefer weak copyleft: do whatever you want with my code as long as you keep my license on my code.

Offline ReBirth
« Reply #20 - Posted 2013-08-03 14:09:55 »

Permissive is easier.

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #21 - Posted 2013-08-03 15:17:16 »

Yeah in the end I side with permissive, therefore: 3-clause BSD license.

Offline SHC
« Reply #22 - Posted 2013-08-03 15:40:00 »

I've changed the licences of my libraries to LGPL v3. No "strong copyleft".

Offline Sammidysam
« Reply #23 - Posted 2013-08-04 00:49:06 »

After reading up on licenses, I have made all of my programs/games gpl-3.0, libraries lgpl-3.0, and my website MIT because most of the code is auto-generated anyway.  One project of mine I have to decide if I want to only use GPL libraries or use libraries of different licenses.  I'll see what I decide in the end.

Also, @wesley.laferriere I found a nice license generator here (GitHub is currently down sadly).  You can install it with gem install license-generator and then to generate a GPL license you would do licgen gpl-3.0 "Author Name" and it will create a file called LICENSE for you.  I've found it quite convenient.  licgen list will list all the available licenses.
Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #24 - Posted 2013-08-04 01:48:41 »

You can install it with gem install license-generator

1  
2  
3  
4  
5  
wessles@ubuntu:~$ gem install license-generator
The program 'gem' can be found in the following packages:
 * ruby1.9.1
 * rubygems
Try: sudo apt-get install <selected package>


The problem with open-source.

Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #25 - Posted 2013-08-04 01:53:07 »

@HeroesGravesDev
What?!


Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #26 - Posted 2013-08-04 02:06:49 »

The OSI encourages one concept to spread out everywhere depending on the ideas of the person managing each project.

As a result, you have a whole load of standards which no-one can agree upon which is best, and then people design new concepts that are only compatible with some of the standards.

To make it all worse, someone else comes along and tries to create a standard that covers all standards. Obviously, it doesn't work and then you have one more standard to deal with.

Which is why there are several ways of installing things on linux, and none work for everything.

Offline Sammidysam
« Reply #27 - Posted 2013-08-04 12:08:48 »

For me at least, I had to install the gem as super user in order to have it in my path (I could, of course, modify the path, but I wasn't feeling like it).  I just installed it per-user and as super user in the end.  Did it work well?
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (1254 views)
2018-06-10 19:43:48

EgonOlsen (1124 views)
2018-06-10 19:43:44

EgonOlsen (862 views)
2018-06-10 19:43:20

DesertCoockie (1270 views)
2018-05-13 18:23:11

nelsongames (1104 views)
2018-04-24 18:15:36

nelsongames (1334 views)
2018-04-24 18:14:32

ivj94 (2073 views)
2018-03-24 14:47:39

ivj94 (1226 views)
2018-03-24 14:46:31

ivj94 (2169 views)
2018-03-24 14:43:53

Solater (792 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!