Re: How to setup Eclipse project to build from source?
Fred Toussi via Hsqldb-user <[email protected]> Wed, 05 Mar 2025 11:14:42 +0000
| Newsgroups | gmane.comp.java.hsqldb.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0243798550978185495== Content-Type: multipart/alternative; boundary=f00a706501204943ab95e0915d271601 --f00a706501204943ab95e0915d271601 Content-Type: text/plain Content-Transfer-Encoding: 7bit I use IntelliJ for development but not with the build scripts from the SVN. For HSQLDB jar, use the src directory and exclude the org.hsqldb.cmdline and org.hsqldb.sample source subdirectories. Include the /lib/javax.servlet-api-3.1.0.jar as a library for build, also add JUnit as library. Fred On Mon, Mar 3, 2025, at 15:14, Ilya Basin wrote: > Hi Fred. > > It was the first thing I tried: I chose "Import" -> "Existing Gradle Project". > > Project root directory: (project root). > > The project "hsqldb-svn" was created, but instead of the HSQLDB tasks there were just the generic Gradle tasks available and it wasn't detected as a java project. > > When I tried to import the "build" subfolder the tasks like :hsqldb were working, but the source files above "build" weren't available for editing. > > I think Eclipse doesn't support build.gradle in a subfolder. What IDE do you use? > > > *From:* Fred Toussi via Hsqldb-user <[email protected]> > > *Sent:* Monday, March 3, 2025 at 6:39 PM UTC+4 > > *To:* HSQLDB user list <[email protected]> > > *Cc:* Fred Toussi <[email protected]> > > *Subject:* RE: [Hsqldb-user] How to setup Eclipse project to build from source? > >> With recent versions we rely on the gradle build. When using Ant you should be running the "hsqldb" ant target for the hsqldb.jar. >> >> On Mon, Mar 3, 2025, at 09:51, ilya Basin wrote: >> >>> Hi. >>> I checked out https://svn.code.sf.net/p/hsqldb/svn/base/tags/2.7.4 >>> >>> I tried to use "New Project" -> "Java Project from Existing Ant Buildfile". >>> >>> It gives a lot of errors, mostly related to missing processed classes >>> from the "libclone" java package. >>> >>> >>> >>> _______________________________________________ >>> Hsqldb-user mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/hsqldb-user >>> >> _______________________________________________ >> Hsqldb-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/hsqldb-user >> --f00a706501204943ab95e0915d271601 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso= Normal,p.MsoNoSpacing{margin:0}</style></head><body><div style=3D"font-f= amily:Arial;">I use IntelliJ for development but not with the build scri= pts from the SVN.<br></div><div style=3D"font-family:Arial;"><br></div><= div style=3D"font-family:Arial;">For HSQLDB jar, use the src directory a= nd exclude the org.hsqldb.cmdline and org.hsqldb.sample source subdirect= ories. Include the /lib/javax.servlet-api-3.1.0.jar as a library for bui= ld, also add JUnit as library.<br></div><div style=3D"font-family:Arial;= "><br></div><div style=3D"font-family:Arial;">Fred<br></div><div style=3D= "font-family:Arial;"><br></div><div>On Mon, Mar 3, 2025, at 15:14, Ilya = Basin wrote:<br></div><blockquote type=3D"cite" id=3D"qt" style=3D""><p>= Hi Fred.<br></p><p>It was the first thing I tried: I chose "Import" ->= ; "Existing=0A Gradle Project".<br></p><p>Project root directory: (= project root).<br></p><p>The project "hsqldb-svn" was created, but inste= ad of the HSQLDB=0A tasks there were just the generic Gradle tasks = available and it=0A wasn't detected as a java project.<br></p><p>Wh= en I tried to import the "build" subfolder the tasks like=0A :hsqld= b were working, but the source files above "build" weren't=0A avail= able for editing.<br></p><p>I think Eclipse doesn't support build.gradle= in a subfolder. What=0A IDE do you use?<br></p><div class=3D"qt-mo= z-cite-prefix"><div><br></div><div id=3D"qt-rwhHeaders" style=3D"border-= right-width:medium;border-right-style:none;border-right-color:currentcol= or;border-bottom-width:medium;border-bottom-style:none;border-bottom-col= or:currentcolor;border-left-width:medium;border-left-style:none;border-l= eft-color:currentcolor;border-image-outset:0;border-image-repeat:stretch= ;border-image-slice:100%;border-image-source:none;border-image-width:1;b= order-top-width:1pt;border-top-style:solid;border-top-color:rgb(181, 196= , 223);padding-top:3pt;padding-right:0cm;padding-bottom:0cm;padding-left= :0cm;width:100%;"><p style=3D"margin-top:0cm;margin-right:0cm;margin-bot= tom:0cm;margin-left:0cm;"><span><b>From:</b> Fred Toussi via=0A = Hsqldb-user <a class=3D"qt-moz-txt-link-rfc2396E" href=3D"mailto:hsql= [email protected]"><[email protected]>= </a></span><br></p><p style=3D"margin-top:0cm;margin-right:0cm;margin-bo= ttom:0cm;margin-left:0cm;"><span><b>Sent:</b> Monday, March 3, 2025=0A = at 6:39 PM UTC+4</span><br></p><p style=3D"margin-top:0cm;marg= in-right:0cm;margin-bottom:0cm;margin-left:0cm;"><span><b>To:</b> HSQLDB= user list <a class=3D"qt-moz-txt-link-rfc2396E" href=3D"mailto:hsqldb-u= [email protected]"><[email protected]></a>= </span><br></p><p style=3D"margin-top:0cm;margin-right:0cm;margin-bottom= :0cm;margin-left:0cm;"><span><b>Cc:</b> Fred Toussi <a class=3D"qt-moz-t= xt-link-rfc2396E" href=3D"mailto:[email protected]"><fredt@= users.sourceforge.net></a></span><br></p><p style=3D"margin-top:0cm;m= argin-right:0cm;margin-bottom:0cm;margin-left:0cm;"><span><b>Subject:</b= > RE: [Hsqldb-user]=0A How to setup Eclipse project to build = from source?</span><br></p></div></div><blockquote type=3D"cite" cite=3D= "mid:[email protected]" style=3D"bor= der-top-width:medium !important;border-top-style:none !important;border-= top-color:currentcolor !important;border-right-width:medium !important;b= order-right-style:none !important;border-right-color:currentcolor !impor= tant;border-bottom-width:medium !important;border-bottom-style:none !imp= ortant;border-bottom-color:currentcolor !important;border-left-width:med= ium !important;border-left-style:none !important;border-left-color:curre= ntcolor !important;border-image-outset:0 !important;border-image-repeat:= stretch !important;border-image-slice:100% !important;border-image-sourc= e:none !important;border-image-width:1 !important;padding-left:0px !impo= rtant;margin-left:0px !important;"><pre class=3D"qt-moz-quote-pre">With = recent versions we rely on the gradle build. When using Ant you should b= e running the "hsqldb" ant target for the hsqldb.jar.=0A=0AOn Mon, Mar 3= , 2025, at 09:51, ilya Basin wrote:=0A<br></pre><blockquote type=3D"cite= "><pre class=3D"qt-moz-quote-pre">Hi.=0AI checked out <a class=3D"qt-moz= -txt-link-freetext" href=3D"https://svn.code.sf.net/p/hsqldb/svn/base/ta= gs/2.7.4">https://svn.code.sf.net/p/hsqldb/svn/base/tags/2.7.4</a>=20=0A= =0AI tried to use "New Project" -> "Java Project from Existing Ant Bu= ildfile".=0A=0AIt gives a lot of errors, mostly related to missing proce= ssed classes=20=0Afrom the "libclone" java package.=0A=0A=0A=0A_________= ______________________________________=0AHsqldb-user mailing list=0A<a c= lass=3D"qt-moz-txt-link-abbreviated" href=3D"mailto:[email protected]= urceforge.net">[email protected]</a>=0A<a class=3D"qt-mo= z-txt-link-freetext" href=3D"https://lists.sourceforge.net/lists/listinf= o/hsqldb-user">https://lists.sourceforge.net/lists/listinfo/hsqldb-user<= /a>=0A<br></pre></blockquote><pre class=3D"qt-moz-quote-pre">___________= ____________________________________=0AHsqldb-user mailing list=0A<a cla= ss=3D"qt-moz-txt-link-abbreviated" href=3D"mailto:[email protected]= ceforge.net">[email protected]</a>=0A<a class=3D"qt-moz-= txt-link-freetext" href=3D"https://lists.sourceforge.net/lists/listinfo/= hsqldb-user">https://lists.sourceforge.net/lists/listinfo/hsqldb-user</a>= =0A<br></pre></blockquote></blockquote><div style=3D"font-family:Arial;"= ><br></div></body></html> --f00a706501204943ab95e0915d271601-- --===============0243798550978185495== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0243798550978185495== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Hsqldb-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hsqldb-user --===============0243798550978185495==--