Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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  
  Jinput->Controller.jar?  (Read 4821 times)
0 Members and 1 Guest are viewing this topic.
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Posted 2003-08-02 21:21:04 »

Why does the build.xml file generate controller.jar for the core API of jinput? I can understand the plugins having various names per platform, but I don't see any reason for the JInput core API to build into anything other than jinput.jar the same way jogl jars into jogl.jar.

I'll post something to javadev for vote shortly, but this seems to be something that we should not have any issues changing (I already have in fact done so for the OSX release).

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2003-08-04 16:26:10 »

Just historic.

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #2 - Posted 2003-08-04 17:18:34 »

Anyone have any objections to me making it generate jinput.jar?

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #3 - Posted 2003-08-04 18:01:38 »

Hi
 Sounds good to me, it's a
1  
:%s/controller.jar/jinput.jar/g
for me Smiley

Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2003-08-04 21:06:06 »

Sounds fine.  One of you guys want to change the ANT script and put it back?

JK -- ducking work Wink


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #5 - Posted 2003-08-04 23:33:22 »

I'll catch it tonight with my next (hopefully alpha) update of the JInput OSX code. Ran across a snag where certain fields were only available sometimes and passing back those empty strings through the JNI call was causing bus errors - oops Smiley

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #6 - Posted 2003-08-05 06:18:38 »

Hi
 I've just done the core changes and the DX8 ones as I needed to do them so I could do the linux change.

Cheers

Endolf

Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #7 - Posted 2003-08-05 14:49:18 »

I think I may have added a change to your changes Smiley The output of the build.xml is /dist/jinput.jar. Maybe we should agree on some standard layout for project directories. Here in my shop I've pushed through:

/src <- source files go here
/lib <- libs needed to build go here
/classes <- intermediate build files go here
/res <- any resource files for the .jar go here
/dist <- final distributables go here
/doc <- autogenerated and regular docs go here
build.xml

Would just make things easier if all of the projects followed some similar patter of where things are supposed to go.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #8 - Posted 2003-08-05 14:52:19 »

Hi
 Maybe it jinput.jar needs to be in both bin and dist, as it's needed for the tests (hence bin) but is also the distributable, aslo, but changeing this already in the build scripts you broke the linux build. Oh, and the main coreAPI build file you checked in was broken. Shoudln't we be sticking to the java.net common directories rather than imposing our own, makes sence for jogl, jinput an djoal to have the same node structure.

/me tries to get it working, fix proper later

Cheers

Endolf

Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #9 - Posted 2003-08-05 15:35:04 »

The only file I changed was the build.xml in coreAPI. I have since checked it in with the redundant target removed.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #10 - Posted 2003-08-05 16:04:50 »

Hi
 Exactly Smiley, having changed that one file all the other plugins that depend on files in the coreAPI (jinput.jar) then break if the file no longer exists Smiley (DX cheats and copies it as aprt of the coreAPI build which is why it didn't break).

I'm guessing your not on the CVS mailing list for jinput otherwise you would have noticed me checking the change for the extra 'all' target, and checkin fixes for the linux build, having changed the location of the jinput jar the linux build is broken again Smiley, i've just commited the fix again as it stands in cvs linux and windows builds work again Smiley

Cheers

Endolf

Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #11 - Posted 2003-08-05 16:36:30 »

Nah, I'm not on the CVS list. Why doesn't the Linux port cheat? The OSX port will Smiley

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #12 - Posted 2003-08-05 16:38:00 »

Note, I'm also not seeing a linux port in CVS under plugins. Are you checking into CVS?

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #13 - Posted 2003-08-05 21:18:36 »

Hi
it's there, make sure you are doing a checkuot as update will only update files you already have (depening on your cvs client), if you look at jinput.dev.java.net and then source, it's all there under plugin and linux. The linux build script doesn't copy the jar around as there is no need, as long as it doesn't get deleted the jinput.jar will always be in one place, coreAPI/(insert where ever we decide here)/jinput.jar Smiley, it keeps the coreAPI ant script a little cleaner if it doesn't have to copy the jinput.jar into plugin specific directories, that was my take on it anyway Smiley

Cheers

Endolf

Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #14 - Posted 2003-08-05 23:01:51 »

I really like the idea of the core not being installed into plugin specific directories and would prefer that the directory it ends up in be called dist - I'd actually like one big master build file to generate joal.jar, jutils.jar, jinput.jar and jogl.jar into dist as well, but that's just a dream aat this point.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #15 - Posted 2003-08-06 07:12:08 »

Hi
 Thats not a bad idea, I was thinking about the build dirs last night, hows about a compromise, leave jinput.jar in bin, but add the build target of dist, this will copy jutils.jar, jinput.jar, and the contents of coreAPI/lib/controller/* to the dist directory and zip it up that way you have the bin directory for the textest and readtest, but also have (if you choose to run it) ready made binary distribution for sticking up on a website or including with your game?, I've just checked my own rady built files and they didn't work, the plugin bits need to be in controller directory from where ever you run it (how it works from lib/controller in the tests I dunno, but thats what I found), so I've updated them, I suggest any dist we build with ant sticks to this, so jinput.jar and jutils.jar go in dist, and the plugin goes in dist/controller, then zip it all up?

Cheers

Endolf

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #16 - Posted 2003-08-06 10:59:48 »

Quote
I suggest any dist we build with ant sticks to this, so jinput.jar and jutils.jar go in dist, and the plugin goes in dist/controller, then zip it all up?

That seems like the right way to do it to me.  But where do the native libraries go?  They won't be loaded from the controller directory will they?
Bah, just give me a Web Start extension installer. Smiley

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #17 - Posted 2003-08-06 15:24:50 »

Hi
 they will indeed, the plugin environment stuff in jinput sets the lib path to the controller directory for you Smiley

I checked with the two distro's i've built, linux and windows, and both work for java -cp jinput.jar(;/:)jutils.jar net.games.input.test.Controller(Read/Text)Test

which is nice Smiley

Unless someone complains I will update the main build.xml to reflect this, it shouldn't break any other build files as it is a separte addition.

Cheers

Endolf

Offline TheBohemian

Junior Devvie




Java will rule them all!


« Reply #18 - Posted 2003-08-06 17:47:35 »

Finally there are Win32 binaries available.

Well a big thanks from me. Now I can explore JInput myself.
Smiley Smiley Smiley

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline Jeff

JGO Coder




Got any cats?


« Reply #19 - Posted 2003-08-08 02:29:21 »

Hey Guys,

Youve gotten ahead of us with the dist stuff.

We are working on an automated nightly build as
well as controlled release builds.  They will appear on
web pages all their own.

I appreciate your enthusiasm but I kinda need to leave the build target directories as they were as thats a standard that was agreed on for all the "core" APIs and i don't want to get out of synch with them.  Also, the folks working behind the scenes on things like the automated build systems expect this uniformity.

Can you make sure that what is built ends up in bin and lib?  If you want to add a dist and ANT task for local builds thats fine but having those built copies  in the soruce CVS is likely to cause some real confusion.

Also, although we're running things pretty loosely I'd really appreciate it if you got my check-off as project manager before changing fundemental things like the build scripts.

(If someone else would like to take over project management, we can talk about that, as its not like I don't have lots else to do.)

Thanks

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #20 - Posted 2003-08-08 10:03:09 »

Hi
 I commit a change the main build script that copies a few files across to a dist dir and zips them up, it leaves the originals where they were (bin, lib and src/tests/controller), as/when this automated nightly build thing happens it can easily be removed, it effects no other target (except clean, easy to remove again). Is it ok to leave it in for now?

Cheers

Endolf

P.S. the plugin has *never* ended up under bin or lib, it's always been under src/tests/controller, from what your saying this is a mistake as it should be under bin or lib, correct?

Offline Jeff

JGO Coder




Got any cats?


« Reply #21 - Posted 2003-08-08 20:54:13 »

Quote
Hi
 I commit a change the main build script that copies a few files across to a dist dir and zips them up, it leaves the originals where they were (bin, lib and src/tests/controller),


Cool thats fine for now Smiley
Thanks

Quote

as/when this automated nightly build thing happens it can easily be removed, it effects no other target (except clean, easy to remove again). Is it ok to leave it in for now?

Cheers

Endolf

P.S. the plugin has *never* ended up under bin or lib, it's always been under src/tests/controller, from what your saying this is a mistake as it should be under bin or lib, correct?


Um yeah sure sounds like it but i find  it hard to believe.  Are you SURE there isn't a jar file being built and copied to the appropriate bin or lib under the plug-in branch?  (Ill check it on monday but i'd be astounded if this slipped through.)

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #22 - Posted 2003-08-09 14:12:00 »

The coreAPI gets copied down into the plugins directory but I believe endolf is saying that the plugin .jars and natives don't end up in the /bin or /lib directories of jinput itself.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #23 - Posted 2003-08-15 12:10:11 »

Quote
I appreciate your enthusiasm but I kinda need to leave the build target directories as they were as thats a standard that was agreed on for all the "core" APIs and i don't want to get out of synch with them.  Also, the folks working behind the scenes on things like the automated build systems expect this uniformity.

Thanks

JK


Can we get a document that shows the expected directory layout of the core projects?  (If it exists in CVS and I've missed it, just clue me in.)
If something was agreed on it should be documented.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (28 views)
2014-12-15 09:26:44

Mr.CodeIt (19 views)
2014-12-14 19:50:38

BurntPizza (37 views)
2014-12-09 22:41:13

BurntPizza (73 views)
2014-12-08 04:46:31

JscottyBieshaar (34 views)
2014-12-05 12:39:02

SHC (46 views)
2014-12-03 16:27:13

CopyableCougar4 (42 views)
2014-11-29 21:32:03

toopeicgaming1999 (110 views)
2014-11-26 15:22:04

toopeicgaming1999 (96 views)
2014-11-26 15:20:36

toopeicgaming1999 (29 views)
2014-11-26 15:20:08
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!