jgh Posted August 27, 2010 Share Posted August 27, 2010 I am attempting to build a port for jasperserver for FreeBSD, however I amhaving a bit of an issue. In the source installation document (section 3.2.3 ) it notes that there is a: <js-src>/apache-ant directory that is included with the source code. I downloaded the sourcecode and I am not finding it included. jasperserver-ce-3.7.0-src.zipmd5sum: f6517b3e99641ce2aa9b059b686d828e The error I received so far when doing a ant (installed as a FreeBSD port) is below. The target I am performing is: gen-config Thanks!Jason Code: Post Edited by jgh at 08/27/2010 23:33Post Edited by jgh at 08/27/2010 23:39Post Edited by jgh at 08/27/2010 23:49Post Edited by jgh at 08/27/2010 23:50Post Edited by jgh at 09/01/2010 23:58Post Edited by jgh at 09/01/2010 23:59 Link to comment Share on other sites More sharing options...
jgh Posted August 30, 2010 Author Share Posted August 30, 2010 I downloaded the source for jasperserver 3.5.0, and it includes "apache-ant" in the distributed source. Is there some reason it wasn't included with the latest source code? Thanks!! Link to comment Share on other sites More sharing options...
tkavanagh Posted August 30, 2010 Share Posted August 30, 2010 Shoot, I downloaded and looked. And I see the same issue that the apache-ant folder is not there. It should be there so I'll have to fix this. In the meantime, you *can* use your own copy of apache-ant. Make sure it is version 1.7.1 or better. Then you will also need to copy the ant-contrib-<ver>.jar into your apache-ant/lib folder. The buildomatic scripts rely on the ant-contrib conditional logic capability. You can grab the ant-contrib.jar from the 3.5.0 src package. Link to comment Share on other sites More sharing options...
jgh Posted August 30, 2010 Author Share Posted August 30, 2010 Thanks for taking a look into itIs there a way to build from source code without specifying your specific application/database servers and settings (ie. username, passwords, paths)?With ports, I would like to just be able to do a 'make install' and have a message after telling the user to configure their something.xml file....?With ports, you typically don't configure anything during the build, and having to do so can be extremely particular and specific, which is something that is avoided at all costs with ports.Thanks! Link to comment Share on other sites More sharing options...
jgh Posted August 30, 2010 Author Share Posted August 30, 2010 tkavanaghWrote: Shoot, I downloaded and looked. And I see the same issue that the apache-ant folder is not there. It should be there so I'll have to fix this. In the meantime, you *can* use your own copy of apache-ant. Make sure it is version 1.7.1 or better. Then you will also need to copy the ant-contrib-<ver>.jar into your apache-ant/lib folder. The buildomatic scripts rely on the ant-contrib conditional logic capability. You can grab the ant-contrib.jar from the 3.5.0 src package. I would rather not pull from two different sources right now, however in the meanwhile I did get it to work against 3.5.0. The only thing that I would rather not do, which I am doing is hardcoding build paths, directories, database usernames and passwords. I am hoping that there is a way to not have all of these dependencies before submitting the port to FreeBSD.At least one of the targets depended on the database actually being up, and having access to it.I am wondering if there is any way to build without having to supply all of this information, and do post -configuration with editing of files that I could just put in a message after the installation.The files I have hand edited so far to get it to build are: defaulit_master.properties (for mysql) and js-build.properties (has paths to extracted source) Link to comment Share on other sites More sharing options...
jgh Posted August 31, 2010 Author Share Posted August 31, 2010 I was able to get the port to build and work against 3.5.0. All I need to do is work on the startup script, and get it to actually package. It works as it should in a port format using 'make install'. Please let me know when the source code is updated for 3.7.0! :) Thanks so much Link to comment Share on other sites More sharing options...
jgh Posted September 1, 2010 Author Share Posted September 1, 2010 I've submitted a PR to FreeBSD to include JasperServer in the ports tree. A note to this, though. My original port did all of the database work (ie. building and loading of schema), however this is something that is not encouraged with the port as there are far too many variables to consider in this respect. It would be nice if you could build it without defining any of these, however that doesn't appear to be the case. When the source code is updated online for 3.7.0, I will update the PR/port, respectively.http://www.freebsd.org/cgi/query-pr.cgi?pr=150208Post Edited by jgh at 09/01/2010 23:58 Link to comment Share on other sites More sharing options...
jgh Posted September 2, 2010 Author Share Posted September 2, 2010 jghWrote: I've submitted a PR to FreeBSD to include JasperServer in the ports tree. A note to this, though. My original port did all of the database work (ie. building and loading of schema), however this is something that is not encouraged with the port as there are far too many variables to consider in this respect. It would be nice if you could build it without defining any of these, however that doesn't appear to be the case. When the source code is updated online for 3.7.0, I will update the PR/port, respectively. http://www.freebsd.org/cgi/query-pr.cgi?pr=150208 Post Edited by jgh at 09/01/2010 23:58 To make this more port friendly, it would be great if you could build all of the software, excluding any database schemas, and not have to define any databases. I am envisioning that the schemas could be part of the source code distribution for consideration of end-user to import into a database. With it as part of the distribution, I could merely copy it into the filesystem and present an installer with a message about the schema files for the application server.The port will only build right now by selecting a database, however I don't actually use any database targets (ie. create-js-db, and init-js-db-ce ) other than add-jdbc-driver. Removing this dependency would make this port far more maintainable, and more importantly port compliant to pass pointyhat (FreeBSD Build Cluster).Thanks so much, and I welcome any questions, comments or feedback in my work on this.Post Edited by jgh at 09/07/2010 19:16 Link to comment Share on other sites More sharing options...
jgh Posted September 8, 2010 Author Share Posted September 8, 2010 jghWrote: jgh Wrote: I've submitted a PR to FreeBSD to include JasperServer in the ports tree. A note to this, though. My original port did all of the database work (ie. building and loading of schema), however this is something that is not encouraged with the port as there are far too many variables to consider in this respect. It would be nice if you could build it without defining any of these, however that doesn't appear to be the case. When the source code is updated online for 3.7.0, I will update the PR/port, respectively. http://www.freebsd.org/cgi/query-pr.cgi?pr=150208 Post Edited by jgh at 09/01/2010 23:58 To make this more port friendly, it would be great if you could build all of the software, excluding any database schemas, and not have to define any databases. I am envisioning that the schemas could be part of the source code distribution for consideration of end-user to import into a database. With it as part of the distribution, I could merely copy it into the filesystem and present an installer with a message about the schema files for the application server. The port will only build right now by selecting a database, however I don't actually use any database targets (ie. create-js-db, and init-js-db-ce ) other than add-jdbc-driver. Removing this dependency would make this port far more maintainable, and more importantly port compliant to pass pointyhat (FreeBSD Build Cluster). Thanks so much, and I welcome any questions, comments or feedback in my work on this. Post Edited by jgh at 09/07/2010 19:16 I found that the schemas were in fact distributed with the source code, and I have updated the PR accordingly. At this point, I don't feel anything more else is to be done with this, other than adding other application servers at some point. Right now, the port only supports mysql and postgresql database servers, and tomcat 5.x and 6.x application servers. Link to comment Share on other sites More sharing options...
hozawa Posted December 19, 2010 Share Posted December 19, 2010 I'm looking at "JasperServer CE Source Build Guide" and it seems it's haven't been updated.There still isn't ant-contrib.jar in the svn and from the dev.xml, it looks like it now requires ant 1.8.1 or higher instead of 1.7.0 as is written in the document. There's also no mention of setting maven.home property in the document. Post Edited by hozawa at 12/19/2010 23:36Post Edited by hozawa at 12/19/2010 23:37 Link to comment Share on other sites More sharing options...
whitemarlin Posted September 13, 2011 Share Posted September 13, 2011 tkavanaghWrote: Shoot, I downloaded and looked. And I see the same issue that the apache-ant folder is not there. It should be there so I'll have to fix this. In the meantime, you *can* use your own copy of apache-ant. Make sure it is version 1.7.1 or better. Then you will also need to copy the ant-contrib-<ver>.jar into your apache-ant/lib folder. The buildomatic scripts rely on the ant-contrib conditional logic capability. You can grab the ant-contrib.jar from the 3.5.0 src package. Hi!Do you still intend to add apache-ant to jasperserver-ce-3.7.0-src.zip?Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now